Subject: CGAL users discussion list
List archive
- From: deeFisher <>
- To:
- Subject: [cgal-discuss] Can't convert polyhedron_3 to nef_polyehdron_3
- Date: Fri, 24 Oct 2014 10:02:54 -0700 (PDT)
I am trying to carry out a nef polyhedron Boolean with the below code but it
cant even carry out the first line… it does nothing. I left it running over
night.
Nef_Polyhedron NP1(P);
Nef_Polyhedron NP2(P2);
Nef_Polyhedron o_NP = NP1 - NP2;
The polyhedron is created using the Polyhedron_incremental_builder_3<HDS>.
The ‘begin_surface()’ function uses a std::vector<double> to receive the
coordinates.
I am using the below type defs:
typedef CGAL::Exact_predicates_exact_constructions_kernel Kernel;
typedef CGAL::Polyhedron_3<Kernel> Polyhedron;
typedef CGAL::Nef_polyhedron_3<Kernel> Nef_Polyhedron;
typedef Polyhedron::HalfedgeDS HalfedgeDS;
I’ve also used a wide range of other kernels but they also don’t work:
// typedef CGAL::Homogeneous<CGAL::Gmpz> Kernel;
// typedef CGAL::Homogeneous<CGAL::Gmpz> Kernel;
// typedef CGAL::Simple_cartesian<double> Kernel;
// typedef CGAL::Simple_cartesian<CGAL::Gmpq> Kernel;
// typedef CGAL::Homogeneous<CGAL::Exact_integer> Kernel;
// typedef CGAL::Polyhedron_3<Kernel, CGAL::Polyhedron_items_3 >
PolyhedralSurface;
Whats odd is that on the polyhedron both isClose() and isValid() functions
say false however if I export my polyhedrons as .off before attempting to
convert to nef_polyhedron they come out as single shell closed meshes with
nothing wrong with them at all.
Thanks in advance for any help
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Can-t-convert-polyhedron-3-to-nef-polyehdron-3-tp4660003.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- [cgal-discuss] Can't convert polyhedron_3 to nef_polyehdron_3, deeFisher, 10/24/2014
- Re: [cgal-discuss] Can't convert polyhedron_3 to nef_polyehdron_3, Sebastien Loriot (GeometryFactory), 10/27/2014
- Re: [cgal-discuss] Can't convert polyhedron_3 to nef_polyehdron_3, deeFisher, 10/27/2014
- Re: [cgal-discuss] Can't convert polyhedron_3 to nef_polyehdron_3, Sebastien Loriot (GeometryFactory), 10/27/2014
- Re: [cgal-discuss] Can't convert polyhedron_3 to nef_polyehdron_3, deeFisher, 10/27/2014
- Re: [cgal-discuss] Can't convert polyhedron_3 to nef_polyehdron_3, Sebastien Loriot (GeometryFactory), 10/27/2014
- Re: [cgal-discuss] Can't convert polyhedron_3 to nef_polyehdron_3, deeFisher, 10/27/2014
- Re: [cgal-discuss] Can't convert polyhedron_3 to nef_polyehdron_3, Sebastien Loriot (GeometryFactory), 10/27/2014
- Re: [cgal-discuss] Can't convert polyhedron_3 to nef_polyehdron_3, deeFisher, 10/27/2014
- Re: [cgal-discuss] Can't convert polyhedron_3 to nef_polyehdron_3, Sebastien Loriot (GeometryFactory), 10/28/2014
- Re: [cgal-discuss] Can't convert polyhedron_3 to nef_polyehdron_3, deeFisher, 10/28/2014
- Re: [cgal-discuss] Can't convert polyhedron_3 to nef_polyehdron_3, deeFisher, 10/27/2014
- Re: [cgal-discuss] Can't convert polyhedron_3 to nef_polyehdron_3, Sebastien Loriot (GeometryFactory), 10/27/2014
- Re: [cgal-discuss] Can't convert polyhedron_3 to nef_polyehdron_3, deeFisher, 10/27/2014
- Re: [cgal-discuss] Can't convert polyhedron_3 to nef_polyehdron_3, Sebastien Loriot (GeometryFactory), 10/27/2014
- Re: [cgal-discuss] Can't convert polyhedron_3 to nef_polyehdron_3, deeFisher, 10/27/2014
- Re: [cgal-discuss] Can't convert polyhedron_3 to nef_polyehdron_3, Sebastien Loriot (GeometryFactory), 10/27/2014
Archive powered by MHonArc 2.6.18.