Subject: CGAL users discussion list
List archive
[cgal-discuss] error C2039: 'convert_to_polyhedron' : is not a member of 'CGAL::Nef_polyhedron_3<Kernel_>'
Chronological Thread
- From: Parmeet <>
- To:
- Subject: [cgal-discuss] error C2039: 'convert_to_polyhedron' : is not a member of 'CGAL::Nef_polyhedron_3<Kernel_>'
- Date: Fri, 13 Aug 2010 07:25:38 -0700 (PDT)
Hi all,
I am trying to convert Nef_polyhedron to Polyhedron and strange error occurs
saying that convert_to_polyhedron is not a member. Following is my small
test code:
#include <CGAL/Simple_cartesian.h>
#include <CGAL/Nef_polyhedron_3.h>
#include<CGAL/gmpz.h>
#include <CGAL/Polyhedron_3.h>
#include "Polyhedron_IO.h"
#include<iostream>
typedef CGAL::Simple_cartesian<CGAL::Gmpz> Kernel;
typedef CGAL::Polyhedron_3<Kernel> Polyhedron;
typedef CGAL::Nef_polyhedron_3<Kernel> Npolyhedron;
typedef Polyhedron::Halfedge_handle Halfedge_handle;
int main() {
Point_3 p( 1, 0, 0);
Point_3 q( 0, 1, 0);
Point_3 r( 0, 0, 1);
Point_3 s( 0, 0, 0);
Point_3 t( 4,5,6);
Polyhedron P,Q,R;
P.make_tetrahedron(p,q,r,s);
Q.make_tetrahedron(p,q,r,t);
Npolyhedron n1(P);
Npolyhedron n2(Q);
Npolyhedron n3=n1+n2;
if(n3.is_simple())
n3.convert_to_polyhedron(R);
save_polyhedron(R,"testingmodels.off");
return 0;
}
Please correct me where i am wrong. Looking for your replies.
Thanks and Kind Regards
Parmeet
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/error-C2039-convert-to-polyhedron-is-not-a-member-of-CGAL-Nef-polyhedron-3-Kernel-tp2324293p2324293.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- [cgal-discuss] error C2039: 'convert_to_polyhedron' : is not a member of 'CGAL::Nef_polyhedron_3<Kernel_>', Parmeet, 08/13/2010
- [cgal-discuss] Re: error C2039: 'convert_to_polyhedron' : is not a member of 'CGAL::Nef_polyhedron_3<Kernel_>', Parmeet, 08/16/2010
- Re: [cgal-discuss] Re: error C2039: 'convert_to_polyhedron' : is not a member of 'CGAL::Nef_polyhedron_3<Kernel_>', Sebastien Loriot (GeometryFactory), 08/16/2010
- [cgal-discuss] Re: error C2039: 'convert_to_polyhedron' : is not a member of 'CGAL::Nef_polyhedron_3<Kernel_>', Parmeet, 08/17/2010
- Re: [cgal-discuss] Re: error C2039: 'convert_to_polyhedron' : is not a member of 'CGAL::Nef_polyhedron_3<Kernel_>', Sebastien Loriot (GeometryFactory), 08/17/2010
- [cgal-discuss] Re: error C2039: 'convert_to_polyhedron' : is not a member of 'CGAL::Nef_polyhedron_3<Kernel_>', Parmeet, 08/17/2010
- Re: [cgal-discuss] Re: error C2039: 'convert_to_polyhedron' : is not a member of 'CGAL::Nef_polyhedron_3<Kernel_>', Sebastien Loriot (GeometryFactory), 08/16/2010
- [cgal-discuss] Re: error C2039: 'convert_to_polyhedron' : is not a member of 'CGAL::Nef_polyhedron_3<Kernel_>', Parmeet, 08/16/2010
Archive powered by MHonArc 2.6.16.