Subject: CGAL users discussion list
List archive
- From: Benjamin Kehlet <>
- To: cgal-discuss <>
- Subject: Re: [cgal-discuss] Mesh3 Polyhedral Domain
- Date: Fri, 12 Feb 2016 23:06:39 +0100
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:1rmJTxNHJaUYeKnF0gAl6mtUPXoX/o7sNwtQ0KIMzox0Kf36rarrMEGX3/hxlliBBdydsKIbzbGI+Pm8BCQp2tWojjMrSNR0TRgLiMEbzUQLIfWuLgnFFsPsdDEwB89YVVVorDmROElRH9viNRWJ+iXhpQAbFhi3DwdpPOO9QteU1JTokbvssMSPPk1hv3mUX/BbFF2OtwLft80b08NJC50a7V/3mEZOYPlc3mhyJFiezF7W78a0+4N/oWwL46pyv50IbKPhYq5tTaBEFC90dCcu9cjzvF/CSxGO7z0SSCINgx9QCk/E6h/9GZz+uy+/uutm0zSBJp7KSuU/Vj2mqqtqUxT1kzxPYzU2+WWShs1rh79AuzqgoQZ+ysjaetfGGuB5e/b3cNUYTG9AWI5yWixFD5/0O4ECCegIOOdbh5L8okYKpF24Al//V6vU1jZUiyqujuUB2OM7HFSe0Q==
Hi Andrew
Yes, that should do it. (I didn't use these functions, but they are probably more robust than my home-brewed code which does essentially the same).
Regards
BenjaminOn 12 February 2016 at 16:13, Andrew Crozier <> wrote:
Hi Benjamin,
Thanks very much for your fast reply!
Would use of the 'Polygon soup' functions as described in the documentation (http://doc.cgal.org/latest/Polygon_mesh_processing/index.html#PolygonSoups) be a suitable preprocessing step to robustly account for this issue?
Best wishes,
Andrew
On 11/02/16 20:19, Benjamin Kehlet wrote:
Benjamin KehletBest regardsHope this helps!Attached is a repaired version. I am able to generate a mesh from this file without problems.These triangles share an edge from vertex 745 to vertex 739.Line 1980: 3 739 743 745Line 1148: 3 745 739 251Hi AndrewThe 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
Andrew Crozier
+43 316 380 7759
Postdoctoral Researcher
Institute for Biophysics
Medical University of Graz
- [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.