Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CGAL Surface_mesher and Mesh_3 may miss isolated inclusions #7

Open
fangq opened this issue Jun 12, 2015 · 4 comments
Open

CGAL Surface_mesher and Mesh_3 may miss isolated inclusions #7

fangq opened this issue Jun 12, 2015 · 4 comments

Comments

@fangq
Copy link
Owner

fangq commented Jun 12, 2015

The previous report can be found here:

http://cgal-discuss.949826.n4.nabble.com/missing-objects-when-meshing-a-3D-image-with-multiple-disconnected-inclusions-td3349283.html

Testing image is included in the above report.

Basically, if there are multiple isoloated inclusions (same or differnt label) inside a background volume of index 0, the surface mesher or 3D mesher may return the mesh of a subset of these inclusions in a more or less random manner.

@fangq
Copy link
Owner Author

fangq commented Jul 4, 2015

the latest CGAL release (4.6) still has trouble processing the test dataset provided in the original bug report (fivespheres.inr.gz).

Here are the steps to reproduce

  • compile CGAL 4.6
  • cd examples/Mesh_3/data, download and save the fivespheres.inr.gz file
  • apply the following patch to mesh_3D_image.cpp
37c37,38
<   image.read("data/liver.inr.gz");
---
> //  image.read("data/liver.inr.gz");
>   image.read("data/fivespheres.inr.gz");
43c50
<   Mesh_criteria criteria(facet_angle=30, facet_size=6, facet_distance=4,
---
>   Mesh_criteria criteria(facet_angle=30, facet_size=0.1, facet_distance=1,
  • make mesh_3D_image
  • run mesh_3D_image
  • load the out.mesh file, it contains only two connected voxel-like object (pointed by arrow in the attached image), and all spheres are not shown.
  • changing facet_size and other criteria subfields did not change the shape of the output.

cgal_4 6_output_compare_to_truth

In the above attached image, the 5 colored spherical objects are expected inclusions; however, none of them are shown in the output mesh (a small cluster pointed by arrow).

@fangq
Copy link
Owner Author

fangq commented Jul 4, 2015

A workaround is provided in FAQ#9.

@fangq
Copy link
Owner Author

fangq commented Oct 18, 2019

this issue seemed to have been resolved in CGAL 4.14 and later using the new interface for custom initialization, see

https://doc.cgal.org/latest/Mesh_3/index.html#title26

I would consider this issue resolved, but we need to update the mesh_3d_image using the newly added feature.

@lrineau
Copy link
Contributor

lrineau commented Oct 19, 2019

Let me know if you need any help with that tasks. I am the main maintainer of CGAL mesh packages.

arttumiettinen pushed a commit to arttumiettinen/iso2mesh that referenced this issue Jan 3, 2020
…on in cgalmesh with the custom initialization by Laurent Irineau.
arttumiettinen pushed a commit to arttumiettinen/iso2mesh that referenced this issue Jan 3, 2020
…on in cgalmesh with the custom initialization by Laurent Irineau.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants