Subject: CGAL users discussion list
List archive
- From: Benjamin Kehlet <>
- To: cgal-discuss <>
- Subject: Re: [cgal-discuss] Mesh3 Polyhedral Domain
- Date: Thu, 11 Feb 2016 20:19:23 +0100
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:ybrMih1cLUu4fbBosmDT+DRfVm0co7zxezQtwd8ZsekXK/ad9pjvdHbS+e9qxAeQG96LtLQf16GP6viocFdDyKjCmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TWM5DIfUi/yKRBybrysXNWC0ILsi6vrosWbSj4LrQT+SIs6FA+xowTVu5teqqpZAYF19CH0pGBVcf9d32JiKAHbtR/94sCt4MwrqHwI6Lpyv/NGSrjwKqQkUaRDXnNhKHEw/MSttB/ZTALJ6GFbSXQTihMPAg7L61bxUZ719yf7reFgwzLJAcqjRr89XXGu7rxgVQTzwHMMODc9tW3Wkcdtl7lzoRS7phU5zZSCM6+PM/8rVK7bf9ofRGwJfctRUyFdSte2Yo0NBu8APs5Drozgo1JIqxzoVlrkP//m1jId3iy+5qY9yel0SQw=
Hi Andrew
The triangles in your files are not properly oriented. This leads to triangles sharing halfedges which is not allowed in a halfedge based data structure. In fact all the triangles in the plane z=2.5 should be flipped. See eg. On 11 February 2016 at 19:03, Andrew Crozier <> wrote:
Hi,
I am using the 3D mesh generation code as part of my workflow for building finite element models of the heart, but have run into a bit of bother with one aspect of it.
I am attempting to mesh a 3D polyhedral surface as in the example in the Mesh3 documentation:
http://doc.cgal.org/latest/Mesh_3/index.html#Mesh_33DPolyhedralDomains
When running this example, but only changing the input .off surface file to the attached 'slice.off' (and scaling the size parameters appropriately to correspond to the size of the input mesh), I get a segmentation fault in:
Program received signal SIGSEGV, Segmentation fault.
0x0000000000494a60 in CGAL::Triangle_accessor_3<CGAL::Polyhedron_3<CGAL::Epick, CGAL::Polyhedron_items_3, CGAL::HalfedgeDS_default, std::allocator<int> >, CGAL::Epick>::triangle(CGAL::internal::In_place_list_const_iterator<CGAL::HalfedgeDS_in_place_list_face<CGAL::I_Polyhedron_facet<CGAL::HalfedgeDS_face_base<CGAL::HalfedgeDS_list_types<CGAL::Epick, CGAL::I_Polyhedron_derived_items_3<CGAL::Polyhedron_items_3>, std::allocator<int> >, CGAL::Boolean_tag<true>, CGAL::Plane_3<CGAL::Epick> > > >, std::allocator<CGAL::HalfedgeDS_in_place_list_face<CGAL::I_Polyhedron_facet<CGAL::HalfedgeDS_face_base<CGAL::HalfedgeDS_list_types<CGAL::Epick, CGAL::I_Polyhedron_derived_items_3<CGAL::Polyhedron_items_3>, std::allocator<int> >, CGAL::Boolean_tag<true>, CGAL::Plane_3<CGAL::Epick> > > > > > const&) const [clone .isra.1304] ()
However, when I run with the attached 'cube.off', I get no such error, and the mesh generates successfully.
I suspect that there may be an issue with my input file, but having checked that the number of polys and points is correct, and that none of the polys contain out-of-range points, I am fairly stumped.
If anyone here is able to have a look at my input files and/or suggest further action, I would appreciate it!
Best wishes,
Andrew Crozier
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss
Attachment:
sliced-repaired.off
Description: model/geomview-off
- [cgal-discuss] Mesh3 Polyhedral Domain, Andrew Crozier, 02/11/2016
- Re: [cgal-discuss] Mesh3 Polyhedral Domain, Benjamin Kehlet, 02/11/2016
- Re: [cgal-discuss] Mesh3 Polyhedral Domain, Andrew Crozier, 02/12/2016
- Re: [cgal-discuss] Mesh3 Polyhedral Domain, Benjamin Kehlet, 02/12/2016
- Re: [cgal-discuss] Mesh3 Polyhedral Domain, Andrew Crozier, 02/15/2016
- Re: [cgal-discuss] Mesh3 Polyhedral Domain, Andrew Crozier, 02/15/2016
- Re: [cgal-discuss] Mesh3 Polyhedral Domain, Benjamin Kehlet, 02/12/2016
- Re: [cgal-discuss] Mesh3 Polyhedral Domain, Andrew Crozier, 02/12/2016
- Re: [cgal-discuss] Mesh3 Polyhedral Domain, Benjamin Kehlet, 02/11/2016
Archive powered by MHonArc 2.6.18.