Subject: CGAL users discussion list
List archive
- From: "Sebastien Loriot (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] Meshing implicit surfaces creates inside out meshes.
- Date: Tue, 12 Jun 2018 18:09:37 +0200
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:0rVbGB1w6UffTaKKsmDT+DRfVm0co7zxezQtwd8ZseMXKvad9pjvdHbS+e9qxAeQG9mDtrQc06L/iOPJYSQ4+5GPsXQPItRndiQuroEopTEmG9OPEkbhLfTnPGQQFcVGU0J5rTngaRAGUMnxaEfPrXKs8DUcBgvwNRZvJuTyB4Xek9m72/q99pHPYwhEniaxba9vJxiqsAvdsdUbj5F/Iagr0BvJpXVIe+VSxWx2IF+Yggjx6MSt8pN96ipco/0u+dJOXqX8ZKQ4UKdXDC86PGAv5c3krgfMQA2S7XYBSGoWkx5IAw/Y7BHmW5r6ryX3uvZh1CScIMb7S60/Vza/4KdxUBLmlTkJNzA5/m/UhMJ/gq1UrxC9qBJw2IPUfIOYOeBicq/Bc94XR2xMVdtRWSxbBYO8apMCA+QcM+lGtIbyvUAOrQe/BQayAuPk1zlGhnjs3a071OQhDRzN0AghEd0Qt3TUqcv6NLsIUeG1zKfH1ynMb+9R2Tfn6InEdx4tquyLULJrdcrRzlMvFwLCjlWMs4DlOjeV2/8Cs2ie9eVgVOavh3Q7pAF2pzii38EhgZTHiIISz1DL7yR5wIAtKN25Tk57e9+kH4FKuyGULYt6Wt8tQ25ytyY+0LEGvoS7fCcMxZ86xBDfc+SKfoqH7x75SeqdPzd1iGhmdb6hnRq//kitxvX/W8WoylpGsDdJn9nWunwQ1xHf9NKLR/ph8kqnxD2BzRrc6vteLkAxjafbK4Auwro3lpcLtETMBC72mEHvgK6Yc0Uo5vGk6+rob7jmvJOcOIh0igbxMqQqhMOzG/g3Mg8LX2SD+OS80qPs/VHhTbhIgfA6iLTVvI7aKMgBpaO1HRVZ34kj5hqnCjepytUYnX0JLFJffxKHipDkO0rKIPD/F/e/glOskCtxy/DDOr3sGZrNLn3Zn7fgebZx8VJTyA02zdxH/ZJbFqkBIO7vWk/2rNHXEhA5PBaww+r+Fdp915geVn6SAq+CK6PfqkSI5+IqI+mUfoAZojf9K/4/5/7vl3A1g1EdfbP6laYRc22yS/R6P12CMz2rmcYECW5MvwwkTeWshkfFSi9Wf3/1XqQy4XYwB4uiSIvCXYuwm6fS4CDuFZJfYiVKC0uHDGzzX4SCQfYFLiyIceF7lTlRH4OsQYY6yRCjskfezKBmKfacugIVspfuyMJkyeTYiRYo5H0+R5CG12aXTmZo2GYMbzAz1aF750d6zwHQguBDn/VEGIkLtLtyWQAgOMuElr0oO5XJQgvEO+yxZhOjS9SiDys2S4tokdALakd5Xd6li0Kahnb4M/ouj7WOQacM3OfExXGofpRyzn/H0O8qiFx0GpISZ13jvbZ28k3oP6CMk0idkPz3J6EV3SqI62LbiGTS4QdXVwl/VaiDVncaNBPb
try facets_in_complex_3_to_triangle_mesh()
https://doc.cgal.org/latest/Mesh_3/group__PkgMesh__3Functions.html#ga68ca38989087644fb6b893eb566be9ea
Sebastien.
On 06/12/2018 04:45 PM, Zesen Qian wrote:
Hi Sebastien,
Thank you for the comment. I actually encountered this problem as
well, and the method you suggested should solve it well. Only one
question remains, however: is there anyway to get a Surface_mesh from
c3t3 directly, besides calling export_surface_to_off() and then
reading it back?
Thank you.
Best,
Zesen
On Tue, Jun 12, 2018 at 6:44 AM, Sebastien Loriot (GeometryFactory)
<>
wrote:
We added some functions in PMP to handle this kind of issues.
See CGAL::Polygon_mesh_processing::orient()
https://doc.cgal.org/latest/Polygon_mesh_processing/group__PMP__orientation__grp.html#gafe035adcc4ff061b4438cc9dae591d00
Sebastien.
On 06/12/2018 11:31 AM, Raphael Grimm wrote:
Hi,
i am meshing implicit surfaces and sometimes the result is inside out (the
vertex order of triangles is wrong).
I attached three meshes and the code to show what i mean:
* 'sphere_r_const_1_1.000000.off' is correct
* 'sphere_r_const_2_1.000000.off' is inside out
* 'sphere_r_const_4096_1.000000.off' is correct
In both cases i meshed a unit sphere.
The only difference when creating the spheres is the squared radius i
passed to 'Sphere_3' when creating my 'CGAL::Implicit_mesh_domain_3'.
The first sphere got the exact squared radius '1' and the second the
larger value '2' and the third the value '4096'.
Hence i the issue can't be a too large bounding sphere.
Why does this happen and how can i prevent this?
Best regards,
Raphael
--
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] Meshing implicit surfaces creates inside out meshes., Raphael Grimm, 06/12/2018
- Re: [cgal-discuss] Meshing implicit surfaces creates inside out meshes., Sebastien Loriot (GeometryFactory), 06/12/2018
- Re: [cgal-discuss] Meshing implicit surfaces creates inside out meshes., Zesen Qian, 06/12/2018
- Re: [cgal-discuss] Meshing implicit surfaces creates inside out meshes., Sebastien Loriot (GeometryFactory), 06/12/2018
- Re: [cgal-discuss] Meshing implicit surfaces creates inside out meshes., Laurent Rineau (CGAL/GeometryFactory), 06/12/2018
- Re: [cgal-discuss] Meshing implicit surfaces creates inside out meshes., Zesen Qian, 06/13/2018
- Re: [cgal-discuss] Meshing implicit surfaces creates inside out meshes., Zesen Qian, 06/12/2018
- Re: [cgal-discuss] Meshing implicit surfaces creates inside out meshes., Sebastien Loriot (GeometryFactory), 06/12/2018
Archive powered by MHonArc 2.6.18.