Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Re: Nef polyhedron 3 confusion

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Re: Nef polyhedron 3 confusion


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Re: Nef polyhedron 3 confusion
  • Date: Tue, 29 Nov 2011 16:12:50 +0100

If you have a non-manifold polyhedron in an off-file,
you can try using CGAL::OFF_to_nef_3
http://www.cgal.org/Manual/latest/doc_html/cgal_manual/Nef_3_ref/Function_OFF_to_nef_3.html

like that:

#include <CGAL/OFF_to_nef_3.h>

........

std::ifstream ifile("myfile.off");
Nef_polyhedron N;
CGAL::OFF_to_nef_3(ifile,N);




Sebastien.



freckles wrote:
Thanks for the reply.

I don't have any choice but to use Nef_Polyhedron_3 because my data is
possibly non-manifold. I was hoping that I could simply add vertices to
facets, and add the facets to a surface that way, but it seems pretty much
impossible - did I get this right at least? I don't get why Nef polyhedra
don't work like that though.
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Nef-polyhedron-3-confusion-tp4118630p4119472.html
Sent from the cgal-discuss mailing list archive at Nabble.com.





Archive powered by MHonArc 2.6.16.

Top of Page