Subject: CGAL users discussion list
List archive
- From: Sebastien Loriot <>
- To:
- Subject: Re: [cgal-discuss] Use of AABB Tree for each face of a surface mesh?
- Date: Thu, 11 Feb 2021 09:32:50 +0100
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:zm+9vBJCGOTmkld+PdmcpTZWNBhigK39O0sv0rFitYgXKv/zrarrMEGX3/hxlliBBdydt6sVzbeG+PG4EUU7or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRpOOv1BpTSj8Oq3Oyu5pHfeQpFiCe5bL9oLBi7rgrdu80KjYB/Nqs/1xzFr2dSde9L321oP1WTnxj95se04pFu9jlbtuwi+cBdT6j0Zrw0QrNEAjsoNWA1/9DrugLYTQST/HscU34ZnQRODgPY8Rz1RJbxsi/9tupgxCmXOND9QL4oVTi+6apgVRnlgzoFOTEk6mHaktF+grxVoByhpBJxzYDbb46XO/Vica3QZs8aSGlbU8pNSyBMDIGxYo0SBOQBJ+ZYqIz9qkMToxSgHgajHvjvyiNJhnDo260xzuIvEQbc3AwhGNIOrGnfodLuNKcWVuC11qjIzTLfb/9M3Df97JPFch8kof6WXLJwddDdxlUoFwPAl1idr5HuMDyJ2OoXqWeb8/ZgWvy1i24hswx9vjmiy9oyh4TLmo4Y1lDK+CpnzYg7ONC1Sk52bcOmHZZOuSyXK5V6T8c+T2xmuSs3yr0LtJ25cSYE1ZgqyQLSZvqaeIaG5RLjUfyeITZ+hH99ebK/gQyy8Um6xeHmWMm0ylBHpTdGnNnUrn0ByQDf58ydRvZ+/kqtwyuD2x7Q5+1eLk05mrLXJ4A7zbIsi5YetFrMEjPsl0jzkqOaalgo9+2m5uv9fLnqupqROJN6igz9Mqkjn8KyDv4lPgUPWmWW+eax2KD98UD8QrhHjf47nbPfvZvHP8oUvLS5DBVQ0os76xawETOm0NMAkHkCNl1FeRaHg5HnOlHLPfz0FPm/jlujnTtxyPDGObrhAprJLnfdirvuYbF960tExAoyy9BQ+Y5UB6kfLP7vXkL9rt/VAx8jPwCp3erqC89x24wRVG6XB6+WKqLSsVuG5uI1JOmMYZcYuC35K/gi/f7ujHg5mUMHcams2Zsac3+4HvF8LEWYZXrgmMsOEWAPvgYmVuzllEWCUSJPZ3a1R68z+j47B5iiDYvaW4+tgaeB0zumHp1NfWBLEUuMEHftd4WcQfgAciOSIsl7kjwFT7etUYEh1Qv9/DL80Kdte+rI5jUD59Wkz8lw/+SVlBco9DUyAd7ayHCIV2gzn2UGQHg906l75EB80VyeyrMrvvpDCNZv6uNVBwcmKYbHnas9EMH3QguHf9GTSV/gTM/hGiA0Vtt2wtkAZAF2FNymyxzCxCG3GKRGq7veD5M99ufQ3mP6Ot1m43fAzqgoyVc8EeVVMmjzvaN1/hPPBoPP22GejaetaexIxyrK7maE0SyLuGlXVQdxVePOWnVJNRielsjw+k6XF+zmMr8gKAYUkZffeJsPUcXgiBB9fNmmONnaZDjsyWK5BBLN2bbVKYS2JyMS2yLSDEVCmAcWry7fZFoOQxy5qmebNwRAUFfmYkfi6+578SrpQUo9zgXMZEpkhePspkwlwMeEQvZW5Yoq/T87omwtTlm41tPSTdGHolg5cQ==
If you only want to build an AABB-tree of a subset of edge of a mesh,
simply put the edges inside a std::vector for example and pass the
.begin/end() range to the constructor of the tree.
Note that if you should not modified the mesh if you are still planning
to use the AABB-tree as it will not be updated.
Best,
Sebastien.
On 2/10/21 6:08 PM, David Rochera wrote:
Hello everyone,
I want to use the AABB Tree to find intersections with the edges of a surface mesh "sm" by doing something like:
Tree tree(CGAL::edges(sm).first, CGAL::edges(sm).second, sm);
But I don't want to do it for the whole surface "sm", I just want to do it forĀ a face given by a face index. Is there any way to replace "sm" in the line above for something similar indicating the face to be considered?
I managed to do it by extracting each face as a single surface mesh "sm" and then running the algorithm. The problem is that after finding these intersections I do some Euler operations (splitting edges and faces) and I want the changes to be done in the original whole mesh "sm", not just in each face as separated surface meshes. Any idea on how could this be done?
Thank you very much and best regards,
David
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss
- [cgal-discuss] Use of AABB Tree for each face of a surface mesh?, David Rochera, 02/10/2021
- Re: [cgal-discuss] Use of AABB Tree for each face of a surface mesh?, Sebastien Loriot, 02/11/2021
- Re: [cgal-discuss] Use of AABB Tree for each face of a surface mesh?, David Rochera, 02/11/2021
- Re: [cgal-discuss] Use of AABB Tree for each face of a surface mesh?, Sebastien Loriot, 02/11/2021
Archive powered by MHonArc 2.6.19+.