Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Re: 3D boolean operation

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Re: 3D boolean operation


Chronological Thread 
  • 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.





Archive powered by MHonArc 2.6.16.

Top of Page