Subject: CGAL users discussion list
List archive
- From: Zohar <>
- To:
- Subject: [cgal-discuss] Re: 3D boolean support
- Date: Sat, 10 Mar 2012 05:59:22 -0800 (PST)
Here is a small standalone app that crashes the 3D union, using the same
input meshes above:
https://docs.google.com/open?id=0B4PDrM6_sr2UdzFJYTZYOWdTb2VJTkp5WmVuXzAxdw
main.cpp:
#include <CGAL/Nef_polyhedron_3.h>
#include <CGAL/Exact_predicates_exact_constructions_kernel.h>
#include <CGAL/Polyhedron_3.h>
#include <CGAL/IO/Polyhedron_iostream.h>
typedef CGAL::Simple_cartesian<CGAL::Gmpq> Kernel3;
typedef CGAL::Nef_polyhedron_3<Kernel3> Nef_polyhedron;
typedef CGAL::Polyhedron_3<Kernel3> Polyhedron2;
#include <iostream>
#include <fstream>
using namespace std;
void main()
{
Polyhedron2 poly1, poly2;
ifstream f1("s.off");
f1 >> poly1;
ifstream f2("s1.off");
f2 >> poly2;
Nef_polyhedron N1(poly1);
Nef_polyhedron N2(poly2);
N1 += N2;
Polyhedron2 polyu;
N1.convert_to_polyhedron(polyu);
ofstream of("union.off");
of << polyu << endl;
of.close();
ifstream fu("union.off");
polyu.clear();
fu >> polyu;
Nef_polyhedron TT(polyu); // crash
}
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/3D-boolean-support-tp4459502p4462105.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.