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 12:44:29 +0200
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:QIrYlhDsaKTaT4eCxg2WUyQJP3N1i/DPJgcQr6AfoPdwSPT+psbcNUDSrc9gkEXOFd2Cra4c1qyO6+jJYi8p2d65qncMcZhBBVcuqP49uEgeOvODElDxN/XwbiY3T4xoXV5h+GynYwAOQJ6tL1LdrWev4jEMBx7xKRR6JvjvGo7Vks+7y/2+94fcbglUhDexe69+IAmrpgjNq8cahpdvJLwswRXTuHtIfOpWxWJsJV2Nmhv3+9m98p1+/SlOovwt78FPX7n0cKQ+VrxYES8pM3sp683xtBnMVhWA630BWWgLiBVIAgzF7BbnXpfttybxq+Rw1DWGMcDwULs5Xymp4aV2Rx/ykCoJKiA38G/XhMJzgqxUrh2uqB5jzIDbe4yVKPlzc7nBcd8GS2dMXMBcXDFBDIOmaIsPCvIMMehFoYbjvFQBtwC+BRWtBOzxzD9Dm3n43aog0+QgFgHGwBErE9YPvnvKq9X1MbkdUfyvzKjIzTvMde9Z2Sv66IjSchEtpP+AVq93fMrKzUkvEBnFjlSXqYz5JT+V0+ANvnOU7+plT+2vimonpxttrTiow8chk4/EjZ8bxFDD8CV22oc1JdugRUFnbt6rCp9QuzudN4tsTcMvRXxjtiUiyrAep5K3YCwHxI4kyhPfcfCLbpaE7xH5WOqMIzp1h2ppdbGjixqo70Ss1+3xWtOq3FpWrCdJiMTAu3IN2hHV98OJUOFy/l271jaKzw3T6v9LIUQzlafDLp4u2L8wlp4KvUXNBC/6hFz6jKGLekgm+eWk8evnYrLhpp+TM497lBvyPbgpmsy6Geg4Mw4OUHaH+emkyrHv4Un0TK9Jg/A2iKXVrY7WKMcBqqKkAQJY0Z4v6xOlADen1NQYk2MHLFVAeB+flIjpP1bOIOr5Dfe4n1SgijJrx/TdM73uB5XCNHnDkLP7cblh7E5czRI/zcpD6JJMFrEBPPXzV1ftu9zXFBA5NxW4zPvmCNVmyoweRHmPArSCPaPJsV6I4/ovLPOWaI8Uvjb9Mfkl6OT0gX83g19ONZWuiJAYYXT9EvV9KFiCelLthM0AGCEEpFkQVuvv3Re5XDRafGqzUqR0wjYhCYW6RcfsS4eojaCbzQmyFYFRfHEHQBjYCnPvbYSDR7EJbAqdJ8ZglnoPUr33GNxp7g2nqAKvk+kvFeHT4CBN7cuyhugw3PXakFQJzRIxCs2c12+XSGQtxzEHQjY32OZ0pkkvkw7fg5g9uORREJlo390MSh0zbMeOwOlzCtS0UQXELI/QFQSWB+6+CDR0deofht8DZ0EnRYenhxHHmjWwW/obzuPbQpMz9a3Y0j76IMMvk3s=
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
- [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.