Subject: CGAL users discussion list
List archive
- From: "Sebastien Loriot (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] Re: 3D boolean operation
- Date: Tue, 31 Jan 2012 11:19:11 +0100
Did you try to use the function convert_to_polyhedron (which is the one used in the demo)?
http://www.cgal.org/Manual/latest/doc_html/cgal_manual/Nef_3_ref/Class_Nef_polyhedron_3.html#Function_void_convert_to_polyhedron6Polyhedron__P9_const;
Sebastien.
On 01/28/2012 12:44 AM, noel wrote:
OK. I *think* I've narrowed my problem down to the following funcion. The
convert_inner_shell_to_polyhedron isn't even documented so I'm guessing it's
in beta or something. Can anyone help?
vector<Nef_polyhedron> buildNegative(Nef_polyhedron STOCK, Nef_polyhedron
WORKPIECE) {
vector<Nef_polyhedron> negative;
Nef_polyhedron NEGATIVE = STOCK - WORKPIECE;
Nef_polyhedron::Volume_const_iterator vi = ++NEGATIVE.volumes_begin();
int i = 0;
CGAL_forall_volumes(vi,NEGATIVE) {
if(vi->mark()) {
Polyhedron P;
NEGATIVE.convert_inner_shell_to_polyhedron(vi->shells_begin(),P);
Nef_polyhedron N(P);
negative.push_back(N);
}
i += 1;
}
return negative;
}
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/3D-boolean-operation-tp4332193p4335047.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- [cgal-discuss] 3D boolean operation, noel, 01/27/2012
- Re: [cgal-discuss] 3D boolean operation, Sebastien Loriot (GeometryFactory), 01/27/2012
- [cgal-discuss] Re: 3D boolean operation, noel, 01/27/2012
- [cgal-discuss] Re: 3D boolean operation, noel, 01/27/2012
- [cgal-discuss] Re: 3D boolean operation, noel, 01/28/2012
- Re: [cgal-discuss] Re: 3D boolean operation, Sebastien Loriot (GeometryFactory), 01/31/2012
- Re: [cgal-discuss] 3D boolean operation, Sebastien Loriot (GeometryFactory), 01/27/2012
Archive powered by MHonArc 2.6.16.