Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Mesh3 Polyhedral Domain

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Mesh3 Polyhedral Domain


Chronological Thread 
  • From: Andrew Crozier <>
  • To: <>
  • Subject: Re: [cgal-discuss] Mesh3 Polyhedral Domain
  • Date: Mon, 15 Feb 2016 13:01:30 +0100
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=None ; spf=None
  • Ironport-phdr: 9a23:2U5I1Rd5SGw0rg1vHc2cyiKXlGMj4u6mDksu8pMizoh2WeGdxc+6YR7h7PlgxGXEQZ/co6odzbGG7Oa8ACdbuN6oizMrTt9lb1c9k8IYnggtUoauKHbQC7rUVRE8B9lIT1R//nu2YgB/Ecf6YEDO8DXptWZBUiv2OQc9HOnpAIma153xjLDtvcGKKF4RzBOGIppMbzyO5T3LsccXhYYwYo0Q8TDu5kVyRuJN2GlzLkiSlRuvru25/Zpk7jgC86l5r50IAu3Heb8lR+lYECg+KDJyo9b6sAHKCwqJ/HoVFGsM1QFZBhDMqxD8UJC2uSTzsq9x2TKRINbtHowzDGCp4K5vDRPpkywaLCUR8WfNi8U2grgN8zy7oBkq6ojYeoyKfNFkebHccMlSEWNHUtxcSGpKGISuboYVJ+8MMfterobnrklIpAfoVlrkP//m1jId3iy+5qY9yel0SQw=

Hi Benjamin,

Thanks, I added that to my program, and it is working very well now.

Many thanks again for your help!

BW,
Andrew

On 12/02/16 23:06, Benjamin Kehlet wrote:
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

Benjamin

On 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:
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.

Line 1148: 3 745 739 251
Line 1980: 3 739 743 745

These triangles share an edge from vertex 745 to vertex 739.

Attached is a repaired version. I am able to generate a mesh from this file without problems.

Hope this helps!

Best regards

Benjamin Kehlet

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



Andrew Crozier

+43 316 380 7759

Postdoctoral Researcher
Institute for Biophysics
Medical University of Graz



Archive powered by MHonArc 2.6.18.

Top of Page