Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss][Polyhedron] Simple program problem

Subject: CGAL users discussion list

List archive

[cgal-discuss][Polyhedron] Simple program problem


Chronological Thread 
  • 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




Archive powered by MHonArc 2.6.16.

Top of Page