Subject: CGAL users discussion list
List archive
- From: Philipp Moeller <>
- To:
- Subject: Re: [cgal-discuss] error using polyhedron incremental builder
- Date: Fri, 21 Sep 2012 16:19:11 +0200
- Organization: GeometryFactory
moogroo
<>
writes:
> I'm trying to use the incremental builder to extract a surface from a 3D
> polyhedron by
> defining a class using the polyhedron incremental builder.
> The class will construct a new surface that is a 1/3 of a polyhedron by
> passing the
> original polyhedron to the constructor.
>
> The code compiles fine, however on executing the code, I receive the error:
>
> terminate called after throwing an instance of 'CGAL::Assertion_exception'
> what(): CGAL ERROR: assertion violation!
> Expr: check_protocoll == 1
> File: /usr/local/include/CGAL/Polyhedron_incremental_builder_3.h
> Line: 256
> Aborted
>
> I think the error is thrown when I am adding the polyhedron triangles after
> adding the
> points. I have included my code in the link below:
>
> http://pastebin.com/vWeN3QZ2
The obvious problem is not calling
Polyhedron_incremental_builder_3::end_facet() after the three calls to
add_vertex_to_face. This is what is causing the protocol error. I
haven't really looked the rest of the code but I'm not sure it does what
you expect it to do.
- [cgal-discuss] error using polyhedron incremental builder, moogroo, 09/21/2012
- [cgal-discuss] Re: error using polyhedron incremental builder, moogroo, 09/21/2012
- Re: [cgal-discuss] error using polyhedron incremental builder, Philipp Moeller, 09/21/2012
- [cgal-discuss] Re: error using polyhedron incremental builder, moogroo, 09/21/2012
Archive powered by MHonArc 2.6.18.