Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] lookup_halfedge() error with building Polyhedron_3

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] lookup_halfedge() error with building Polyhedron_3


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] lookup_halfedge() error with building Polyhedron_3
  • Date: Mon, 25 Jul 2016 09:12:15 +0200
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:QtPCJxHXe4fj2/EjqWaWRZ1GYnF86YWxBRYc798ds5kLTJ75ocywAkXT6L1XgUPTWs2DsrQf2rKQ7firAzNYqb+681k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i760zceF13FOBZvIaytQ8iJ3pzxibj5ocKLKyxzxxOFKYtoKxu3qQiD/uI3uqBFbpgL9x3Sv3FTcP5Xz247bXianhL7+9vitMU7q3cY6Lod8JtLXqz+Oqg5VrdFFy8OMmYv5cStuwOQYxGI4y5WaWgcmwFUAgXDpDX9RJb2rmO6med63SSGJ9zYRLsoXi6zru0jHATsjz0GMCJ/9WX/hcl5jaYdqxWk8U8si7XIaZ2YYaItNpjWeskXEDJM
  • Organization: GeometryFactory

Your triangle soup is probably non-manifold. Can you share it?

Sebastien.

On 07/23/2016 07:02 PM, rabm1993 wrote:
Hello,

I have been trying to write code that, given a vertex and element list,
builds a CGAL::Polyhedron_3. I am using the code from:
http://jamesgregson.blogspot.com/2012/05/example-code-for-building.html.

I first mesh a sphere, then I attempt to use the above code to generate the
Polyhedron_3. However, I get the following error:

CGAL::Polyhedron_incremental_builder_3<HDS>::
lookup_halfedge(): input error: facet 11 shares a halfedge from vertex 17 to
vertex 33 with facet 10.
Segmentation fault: 11

What's going on? When I place the sphere in a .OFF file and pass it to the
example program Mesh_an_implicit_mesh.cpp, there is no problem. However, I
would like to pass the vertex and element list directly and thus have to
build the Polyhedron_3 myself.

Thanks!



--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/lookup-halfedge-error-with-building-Polyhedron-3-tp4662090.html
Sent from the cgal-discuss mailing list archive at Nabble.com.





Archive powered by MHonArc 2.6.18.

Top of Page