Subject: CGAL users discussion list
List archive
- From: "LoadCom" <>
- To: "" <>
- Subject: [cgal-discuss][Polyhedron] Simple program problem
- Date: Sun, 30 Dec 2007 17:02:39 +0800
- Disposition-notification-to: "LoadCom" <>
- Organization: LoadCom
Hello,
I'm using CGAL 3.3.1 with VS2003 on Windows XP/SP2.
I'm compiling this simple program but I get a compiler error:
struct Kernel : public CGAL::Exact_predicates_exact_constructions_kernel {};
typedef Kernel::Point_3 Point_3;
typedef Kernel::Plane_3 Plane_3;
typedef CGAL::Polyhedron_3<Kernel> Polyhedron;
typedef CGAL::Nef_polyhedron_3<Kernel> Nef_polyhedron;
int main()
{
Point_3 p( 1.0, 0.0, 0.0);
Point_3 q( 0.0, 1.0, 0.0);
Point_3 r( 0.0, 0.0, 1.0);
Point_3 s( 0.0, 0.0, 0.0);
Polyhedron P;
P.make_tetrahedron( p, q, r, s);
Nef_polyhedron N1(P);
if(N1.is_simple()) {
std::cout << "N1.is_simple\n";
Nef_polyhedron N0(P);
Nef_polyhedron N1(Plane_3(1,0,0,-0.5),
Nef_polyhedron::INCLUDED);
N1 = N1.boundary();
Nef_polyhedron R = N0.intersection(N1);
std::cout << R;
return 0;
}
else {
std::cout << N1;
}
}
The error message is:
CGAL-3.3.1\include\CGAL\Point_3.h(46) : error C2027: undefined
type“boost::STATIC_ASSERTION_FAILURE<x>”
After I changed the kernel with
typedef CGAL::Homogeneous<CGAL::Gmpz> Kernel;
it get compiled, but I get an error from the DOS prompt:
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
I found the error occured during executing the statement
Nef_polyhedron N1(P);
Anybody can tell me what's wrong?
Thanks for any help.
Max
- Beginner-level question, bogiwetamtam, 12/20/2007
- Re: [cgal-discuss] Beginner-level question, Ashwin Nanjappa, 12/27/2007
- [cgal-discuss] How to get resulting polygen of cutting a polyhedron with a plane?, LoadCom, 12/28/2007
- [cgal-discuss][Polyhedron] Simple program problem, LoadCom, 12/30/2007
- Re: [cgal-discuss] Beginner-level question, Ashwin Nanjappa, 12/27/2007
Archive powered by MHonArc 2.6.16.