Subject: CGAL users discussion list
List archive
- From: Bruno Rammon <>
- To:
- Subject: [cgal-discuss] FEM Mesh Intersection Computing With CGAL
- Date: Tue, 18 May 2021 08:18:21 -0500 (CDT)
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=SoftFail ; spf=Pass
- Ironport-hdrordr: A9a23:4rfeyqjJYoXwm0rTTPhhD3Fmy3BQXgMji2hC6mlwRA09TyX4rayTdZEgviMc5wx/ZJheo7690cW7IE8036QU3WBpB8bAYOC+ghrLEGgA1/qG/9SfIVybygcH79YGT0EWMrSZMbEdt7ed3ODSKbsdKbe8mpxBcY3lvg5QpHlRGtldB4wTMHfhLqX9LzM2f6bQrfGnl7d6mwY=
- Ironport-phdr: A9a23:rvfMNxVj/zg2PFwwLV2fyWYvr2rV8KznVTF92vMcY1JmTK2v8tzYMVDF4r011RmVBNSdsawbwLSP+4nbGkU4qa6bt34DdJEeHzQksu4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2aFLduGC94iAPERvjKwV1Ov71GonPhMiryuy+4ZLebxhMiTanf79/LRe7oQrQu8ULnIBvNrs/xhzVr3VSZu9Y33loJVWdnxb94se/4ptu+DlOtvwi6sBNT7z0c7w3QrJEAjsmNXs15NDwuhnYUQSP/HocXX4InRdOHgPI8Qv1Xpb1siv9q+p9xCyXNtD4QLwoRTiv6bpgRRn1gykFKjE56nnahMJwgqxFoxyvuhNwzJLbboyOKPpzfL/Rcc8GSWZdQMpcUTFKDIOmb4sICuoMJftVr5Pgp1sIqhu1GBWiC/nqyj9NgX/227Ax3uM6HgHcwQwgGdUOsG7PrNXuM6cSTOG0w7PUwTjYYPNW3C3y6InMchw7vf6MWrdwfNPXxEIyGAzLkk+eppb5PzOJyOsNqW6b4vJ9Weyvj2Mqqxx8rzehyMovi4TFmJ8Zx1DY+St5z4s4OMO1RVN7b9O4DpZetz+WO5Z0T848X2xmuCg0x7IHtJOmeiUB1Zopxxnaa/OdcoiI5AruVOCLLjhjn31lfKywiwyu/kinz+3xUNS/3lVSriddj9XBsnQA2wbd58WEUPdw/Uas1SyO2g3S7OxPPFo6mrDBK5E7x749jpoTvlrHHi/xgEj2iqCbel8i+uey8OvoebHmqYGGO4BojQH+N7wims25AesmLggDR3WX9OC42bH580D0Q69Gg/43n6XDsZ3XJNwXpqujDA9U1oYj5Qy/DzCj0NkAhnYHNk9FeBSAj4jzIFHOO/f4Deq+glu2jDtm3P/GPrj7DZXMKnjPiqvufbF460JE0go80chf545ICrEGOP/8RkDxu8bcDhMgLgO0wv3nB8lg1oMFQmKCGbSZMaPXsV+Q/O0jOeiMZIkPuDb8Mfcp/fDujWVq0WMaKKKm1J9SZHGjFel9OG2YZ2Dti5EPCzQkpA07GcbwlVuFGQRaYnO1Wepo7CsmDoW8FpzEW5Kk2JSO2S66GttdYWUQWQPEKmvha4jRA6REUymVOMI0ylTsupCuToYg0VelswqokNKPz8LSpmsevJjp0NUz7OrWx0haHdlcAMGU0mXLRGZxzDtgeg==
Hello,
For my dissertation, I have a problem that I need to compute intersections
between two meshes. I have already successfully computed the intersections
regions between meshes using CGAL features, specifically those to create
Constrained Delaunay Triangulations. Until here everything seems ok.
But after the computation of intersections, it's still necessary to create a
map that relates each intersection with two elements finite (one from each
mesh). This last procedure, which does not lead directly with CGAL, is
making the most of the time. I would like to know if exists some way to do
that with CGAL. Also, I accept any suggestions to improve the efficiency of
my code.
My code is here
<http://cgal-discuss.949826.n4.nabble.com/file/t376297/intersection.cpp> .
Unfortunately, it's not possible to run it. I divided it into three basic
sections: the first one creates a 2D Arrangement from the element finite
edges of two different meshes of the same problem provided, let's say, by
the user. The second section creates the Constrained Delaunay Triangulations
(CDT) from the 2D Arrangement previously created. In the last section, for
each facet of the CDT is searched the finite element associated with this
facet (in the two meshes) verifying if the central point of the facet relies
on the finite element. This last section is the slowest one because of the
several calls to the function "pointLiesInsideElement". I am wondering if
it's not possible to make this search procedure with some of the CGAL
features or use some information provided by CGAL objects to help this
procedure be more efficient. Others suggestions are also welcome.
Example of intersection computation:
Finite element mesh 1:
<http://cgal-discuss.949826.n4.nabble.com/file/t376297/Screenshot_from_2021-05-18_09-55-32.png>
Finite element mesh 2:
<http://cgal-discuss.949826.n4.nabble.com/file/t376297/Screenshot_from_2021-05-18_09-56-24.png>
Constrained Delaunay Triangulations computed by CGAL features:
<http://cgal-discuss.949826.n4.nabble.com/file/t376297/Screenshot_from_2021-05-18_09-57-11.png>
After the creation of the CDT is still necessary to compute the mapping of
finite elements associated with the facets of CDT as explained before, that
is, the third figure is associated with the first and second ones. This
search procedure is taking most of the time. Basically, the CDT is necessary
because it will be used to perform a numerical integration in the
intersection regions between finite elements of the two meshes.
Thanks for any suggestions,
Bruno
--
Sent from: http://cgal-discuss.949826.n4.nabble.com/
- [cgal-discuss] FEM Mesh Intersection Computing With CGAL, Bruno Rammon, 05/18/2021
Archive powered by MHonArc 2.6.19+.