Skip to Content.
Sympa Menu

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

Subject: CGAL users discussion list

List archive

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


Chronological Thread 
  • From: rabm1993 <>
  • To:
  • Subject: [cgal-discuss] lookup_halfedge() error with building Polyhedron_3
  • Date: Sat, 23 Jul 2016 10:02:43 -0700 (PDT)
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=SoftFail ; spf=None
  • Ironport-phdr: 9a23:2cD/xRSQREsHIy22K1dnemA6Jdpsv+yvbD5Q0YIujvd0So/mwa64YBKN2/xhgRfzUJnB7Loc0qyN4vimBD1LuM/c+Fk5M7V0HycfjssXmwFySOWkMmbcaMDQUiohAc5ZX0Vk9XzoeWJcGcL5ekGA6ibqtW1aJBzzOEJPK/jvHcaK1oLshrj0psyYOlwVzBOGIppKZC2sqgvQssREyaBDEY0WjiXzn31TZu5NznlpL1/A1zz158O34YIxu38I46FpwecbD/S/JvxwDecAVHV1e1wyscbkvB2GQQqU7WYHSU0XlABJCk7L9kLURJD05zHzvO8kiXjBdZnsRLoxAGXztI9kTRbpjGEMMDtvozKfsdB5kK8O+UHpnBd42YOBO9nNOQ==

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