Subject: CGAL users discussion list
List archive
- From: Zohar <>
- To:
- Subject: [cgal-discuss] Re: 3D boolean support
- Date: Sat, 10 Mar 2012 05:17:05 -0800 (PST)
I think I pinpointed the problem, and it something to do with the
conversion.
I still can't run the demo on my computer
http://www.cgal.org/demo/3.9/polyhedron_3.zip
, but I installed a clean xp on a VM, copied the demo with all the necessary
QT dlls, and I ran it from there (??).
There was no problem in doing the above union in the demo, so I tried to
track the problem in my app. It seems that the result from my union is
damaged, and can't be read by the demo. Where can I find the code for the
demo? I assume it is an old version of mesh_3 demo, but cmake doesn't give
me the nef_3 sources, since I'm missing qt3.
But maybe you could find my mistake:
typedef CGAL::Simple_cartesian<CGAL::Gmpq> Kernel3;
typedef CGAL::Nef_polyhedron_3<Kernel3> Nef_polyhedron;
typedef CGAL::Polyhedron_3<Kernel3> Polyhedron2;
void test()
{
Polyhedron2 poly1, poly2;
ifstream f1("c:/8/s.off");
f1 >> poly1;
ifstream f2("c:/8/s1.off");
f2 >> poly2;
Nef_polyhedron N1(poly1);
Nef_polyhedron N2(poly2);
N1 += N2;
Polyhedron2 polyu;
N1.convert_to_polyhedron(polyu);
ofstream of("c:/8/union.off");
of << polyu << endl;
}
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/3D-boolean-support-tp4459502p4462019.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- [cgal-discuss] 3D boolean support, Zohar, 03/09/2012
- Re: [cgal-discuss] 3D boolean support, Sebastien Loriot (GeometryFactory), 03/09/2012
- [cgal-discuss] Re: 3D boolean support, Zohar, 03/09/2012
- [cgal-discuss] Re: 3D boolean support, Zohar, 03/10/2012
- [cgal-discuss] Re: 3D boolean support, Zohar, 03/10/2012
- [cgal-discuss] Re: 3D boolean support, Zohar, 03/10/2012
- [cgal-discuss] Re: 3D boolean support, Zohar, 03/12/2012
- [cgal-discuss] Re: 3D boolean support, Zohar, 03/10/2012
- Re: [cgal-discuss] Re: 3D boolean support, Sebastien Loriot (GeometryFactory), 03/26/2012
- [cgal-discuss] Re: 3D boolean support, Zohar, 03/10/2012
- [cgal-discuss] Re: 3D boolean support, Zohar, 03/10/2012
- [cgal-discuss] Re: 3D boolean support, Zohar, 03/09/2012
- Re: [cgal-discuss] 3D boolean support, Sebastien Loriot (GeometryFactory), 03/09/2012
Archive powered by MHonArc 2.6.16.