-
|
Dear all, when replicating the Sizing Field as an Analytical Function example from the 3D Mesh Generation package with a spherical sizing field, I get the expected result: Now, when changing the sizing field to some different function, e.g., a torus SDF, I get a result that is only somehow expected (by me). The resulting mesh resembles the torus shape, but the shape of the tetrahedra appears to change not as smooth as in the previous example.
Next, when changing the sizing field to a more complex function that encodes some notion of density around a given point cloud, the resulting mesh does not resemble the given sizing field at all: For all examples above, I have used the same parameters Mesh_criteria criteria(params::facet_angle(30).facet_size(0.1).facet_distance(0.025).
cell_radius_edge_ratio(2).cell_size(size));Obviously,
Regards! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
You should provide a minimal example for the third case so that we can tell whether something is missing or if it's a bug in CGAL. |
Beta Was this translation helpful? Give feedback.
-
|
Internally, the cell size criterion compares the size of a tetrahedron (i.e., the radius of the circumscribing ball) to the size prescribed by a sizing field at the circumcenter of the tetrahedron. In other words, it is not a continuous criterion that would be checking if the tetrahedron is more or less of the correct size with respect to any point within the cell. In your last example, everything is more or less yellow, so it is likely that your circumcenter falls onto a yellow zone, prescribes a large sizing, and thus no tetrahedron gets refined. |
Beta Was this translation helpful? Give feedback.







Internally, the cell size criterion compares the size of a tetrahedron (i.e., the radius of the circumscribing ball) to the size prescribed by a sizing field at the circumcenter of the tetrahedron. In other words, it is not a continuous criterion that would be checking if the tetrahedron is more or less of the correct size with respect to any point within the cell.
In your last example, everything is more or less yellow, so it is likely that your circumcenter falls onto a yellow zone, prescribes a large sizing, and thus no tetrahedron gets refined.