Closed citystrawman closed 1 year ago
To make it more clear, what I need is to find a way to make_mesh_3 while keep the domain's inner surface's original geometric features. It is not necessary to keep the inner surface vertex remain same, but I need to keep its geometry features as much as possible(such as retaining its surface curvatures, boundary edges, etc.)
I think you are looking for a mesh based on a 3D constrained Delaunay triangulation (CDT). That component does not exist (yet) in CGAL. Anyway Mesh_3 cannot provide what you ask for. Meshing tool based on 3D CDT exist. The software tetgen is quite popular.
In the future, GeometryFactory plan to have 3D CDT in CGAL, and meshing algorithms based on CDT. But that piece of software is not ready for release for now.
Please use the following template to help us solving your issue.
This is a continuation for issue #7387 . To sum up, I need to generate 3D mesh of a tunnel (tunnel.off) as well as its bounding box (boundingbox-large.off). The mesh criteria is that, the nearer a point is to the tunnel, the denser that a mesh should be. Therefore the mesh looks like this:
and this is what I have accomplished so far.
However, when I checked the 3D mesh within the tunnel model (I import the mesh file as well as tunnel.off into FLAC and it is able to display the mesh within the tunnel), the mesh looks as it is remeshed and does not retain some features. You can see the 3D mesh and the original off surface mesh comparision:
What I want to achieve is that, the generated 3D mesh should as close as the original surface mesh while retaining the mesh criteria. I know it may be hard to achive this as the mesh size is different from the original surface mesh triangle edge length, but is there a best way to achieve this? Actually by using rhino griddle add-in I could get the 3D mesh within the tunnel looks like this:
which looks perfect.
Describe your issue. Please be specific (compilation error, runtime error, unexpected behavior, wrong results, etc.).
Source Code
Attached is the file in code data.zip
Environment