Subject: CGAL users discussion list
List archive
- From: "Sebastien Loriot (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] Polysurf does not load my .off files correctly
- Date: Tue, 27 Jun 2017 15:16:48 +0200
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:T5+vjxONK0DaFveWvM0l6mtUPXoX/o7sNwtQ0KIMzox0I/T+rarrMEGX3/hxlliBBdydsKMbzbKO+4nbGkU4qa6bt34DdJEeHzQksu4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2aFLduGC94iAPERvjKwV1Ov71GonPhMiryuy+4ZPebgFKiTanfb9+MAi9oBnMuMURnYZsMLs6xAHTontPdeRWxGdoKkyWkh3h+Mq+/4Nt/jpJtf45+MFOTav1f6IjTbxFFzsmKHw65NfqtRbYUwSC4GYXX3gMnRpJBwjF6wz6Xov0vyDnuOdxxDWWMMvrRr8zRDqi8rxrSAf2hygbKz43/mbXislqg6JaphKquhhzzoHQbY2QMvd1Y6HTcs4ARWdZQ8hfSSJBDIO7b4UMAeQOM+lXoIvhqFUBtha+GQuhCfnzxjNUiHL73as32PkhHwHc2wwgGsoDvHrJotrrL6gdS/u1zLXJzTrdafNdxDHz6I/SchAgpvGMQa97fc7Qx0YxEAPFi0ufqZD/PzKV1uoCqXSU7/ZnVeK1i28rrg99qSWoy8c3jonJgZgVylHD9SVl2oo1INm4RVV0Yd6hCpRQtiWaO5FqTcMlRmFloSA3waAIt568eSgF0pUnxxjHZvyGdYiI+BPjW/yLLTd2nnJpYK6whxmo/kik0OH8UdO00FlSoiVYiNnMsWgN2AfU6smIUPdy4kCh2TOJ2gvO6e9EOVg5mbTHJ5Ml2LI9lZoevV7eEiPom0j6lrKae0c49uSw6enqYa/qqoGTOoJ1kA3yL6Ajl8KlDek6MgUDWXWQ9/6m273550L5Ra1Hjv0onandt5DXPcEbqbS4Aw9Ry4oi5Qy/Ayu/3NQWgHUKLk5JdAiIj4juPFHOL/T4Aumlj1uwlzdrwujKPrznAprTMnjOiKntcap55kJGywc+zcpT649KBrwCOv7/R038uMDAAh88KQO0wuLnCNtn1oMZXGKCGrSZMKfVsV+S5+IvJPWMaJUQuDb5MPUl6PvugmU4mV8ZZ6WmwZwXaHWgEvR8P0qZeWbsgssGEWoSogU+Q/bliFmbXTFOZnayRL4z5iwgCIK9ForDXYCsgLmZ3CihBJFWZ2ZGCkqNEXjybYmEVe0MO2qvJNR8mGkESaS5UN1mkgq/sRfzjbthNOvdvCMC8ony0cB8oOzVmxZ1/jN9C4GR0nqGUnpvzV8PEjQ51aQ6rU1mwUqYyoB5heZZHJpd/aBnSAA/YNTnwuZzEMzzVwSJWtCTSVG6CpWJDDY0Q84r0vEHaFp6AcTjxFiXxC6tGb4Si/qOALQ796vd2z76IMMrmCWO77Uok1RzGpgHDmahnKMqq1ne
- Organization: GeometryFactory
In this particular scenario, something that is working
(I just tried it in the Polyhedron demo and it worked for example.off).
Load you mesh as a polygon soup in order to call
orient_polygon_soup:
http://doc.cgal.org/latest/Polygon_mesh_processing/group__PMP__orientation__grp.html#gaadc5bac3072b11d2313e40043c729d0a
It will duplicate vertices where there are some non-manifold issues.
Then create the polyhedron using polygon_soup_to_polygon_mesh:
http://doc.cgal.org/latest/Polygon_mesh_processing/group__PMP__repairing__grp.html#gac8fe80db9800265922ce469c36d97baa
Then select all self-intersecting faces:
http://doc.cgal.org/latest/Polygon_mesh_processing/group__PMP__intersection__grp.html#ga0afb9e365a2f16f0591255b8df468885
are remove those faces.
Fill the hole created:
http://doc.cgal.org/latest/Polygon_mesh_processing/group__hole__filling__grp.html#ga4aacaa46c800a53ca0a0e5fd518a7b20
The tricky part here is to have holes which have the topology of
circles.
Sebastien.
On 06/27/2017 02:29 PM, Joan Hensen wrote:
Thank you for your responses. Does CGAL provide functionality to fix
these mesh issues?
------------------------------------------------------------------------
*Von:*
<>
im
Auftrag von Sebastien Loriot (GeometryFactory)
<>
*Gesendet:* Dienstag, 27. Juni 2017 13:56:25
*An:*
*Betreff:* Re: [cgal-discuss] Polysurf does not load my .off files
correctly
On 06/27/2017 01:53 PM, Andreas Fabri wrote:
It must be a two-manifold, that is not more than two faces
sharing an edge.
+ you have some pinched vertices (at least 2 umbrella of faces around
some vertices)
andreas
On 27/06/2017 13:51, Joan Hensen wrote:
Dear community,
I have several meshes given as .off files, which I would like to load in
the following way:
PolyhedralSurf P;
std::ifstream stream(if_name.c_str());
stream >> P;
But neither vertices nor facets are loaded.
Please check this
( https://www.dropbox.com/s/2dkt0idgzdy1atq/example.off?dl=0 ) example
file out the attached file and tell me what I could do, please.
Best,
Joan
--
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] Polysurf does not load my .off files correctly, Joan Hensen, 06/27/2017
- Re: [cgal-discuss] Polysurf does not load my .off files correctly, Andreas Fabri, 06/27/2017
- Re: [cgal-discuss] Polysurf does not load my .off files correctly, Sebastien Loriot (GeometryFactory), 06/27/2017
- AW: [cgal-discuss] Polysurf does not load my .off files correctly, Joan Hensen, 06/27/2017
- Re: [cgal-discuss] Polysurf does not load my .off files correctly, Sebastien Loriot (GeometryFactory), 06/27/2017
- AW: [cgal-discuss] Polysurf does not load my .off files correctly, Joan Hensen, 06/27/2017
- Re: [cgal-discuss] Polysurf does not load my .off files correctly, Sebastien Loriot (GeometryFactory), 06/27/2017
- Re: [cgal-discuss] Polysurf does not load my .off files correctly, Andreas Fabri, 06/27/2017
Archive powered by MHonArc 2.6.18.