Subject: CGAL users discussion list
List archive
- From: Gilles Kneuss <>
- To:
- Subject: Re: [cgal-discuss] Problem using incremental_builder_3.
- Date: Sat, 21 Nov 2009 13:39:36 +0100
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=AyS56FAWCp8KFegtWc7Q0EwEjdVEICXfY0YERVUHHkJJGi6klbo3tkYn88wz6NPgBO C6/cHU0Ia/yauT0DsxfvgdZlULQoc2e4bvWLAJdMgIvxJlFWQtmffe7KD2J3B5JBU3kA 8GI+95XkDozfHruCW+a/LOLychW4Ci9q2TbAI=
Hi Nico,
It works : thank you very for help !
Gilles
2009/11/21 Nico Kruithof <>
Hi Gilles,The surface should be orientable. The first triangle and the quadrilangle have inconsistent orientation (both have the edge from 0 to 1). The following order for the facets will probably work (not tested):0 1 25 4 31 0 3 42 1 4 50 2 5 3If you apply the right hand rule, all normals will point outward.Bests,NicoOn Sat, Nov 21, 2009 at 9:24 AM, Gilles <> wrote:
Hello CGALer,
(Sorry) I'm still a newbee in CGAL and I have this following problem :
Trying to build a simple prism (with a triangle base) and I get this error when
I try to build a facet sharing points with another one :
lookup_halfedge(): input error: facet 2 shares a halfedge from vertex 0 to
vertex 1 with facet 0.
My code is :
...
B.begin_surface(6,3,0);
//upper vertices
B.add_vertex( Point_3(-1,0,0));
B.add_vertex( Point_3(1,0,0));
B.add_vertex( Point_3(0,1,0));
//lower vertices
B.add_vertex( Point_3(-1,0,-1));
B.add_vertex( Point_3(1,0,-1));
B.add_vertex( Point_3(0,1,-1));
//upper-facet
B.begin_facet();
B.add_vertex_to_facet(0);
B.add_vertex_to_facet(1);
B.add_vertex_to_facet(2);
B.end_facet();
//bottom-facet
B.begin_facet();
B.add_vertex_to_facet(3);
B.add_vertex_to_facet(4);
B.add_vertex_to_facet(5);
B.end_facet();
// side-facet 1 of 3 (doing this make problem)
B.begin_facet();
B.add_vertex_to_facet(0);
B.add_vertex_to_facet(1);
B.add_vertex_to_facet(4);
B.add_vertex_to_facet(3);
B.end_facet();
B.end_surface();
...
What's wrong ?
Gilles
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss
- [cgal-discuss] Problem using incremental_builder_3., Gilles, 11/21/2009
- Re: [cgal-discuss] Problem using incremental_builder_3., Nico Kruithof, 11/21/2009
- Re: [cgal-discuss] Problem using incremental_builder_3., Gilles Kneuss, 11/21/2009
- Re: [cgal-discuss] Problem using incremental_builder_3., Nico Kruithof, 11/21/2009
Archive powered by MHonArc 2.6.16.