Skip to Content.
Sympa Menu

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

Subject: CGAL users discussion list

List archive

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


Chronological Thread 
  • From: Peter Hachenberger <>
  • To:
  • Subject: Re: [cgal-discuss][Polyhedron] Simple program problem
  • Date: Thu, 03 Jan 2008 13:27:45 +0100

Hi Max,

it runs nicely for me. What exactly happens? Do you get an exception?
What CGAL version are you using?

Peter

On Thu, 2008-01-03 at 15:19 +0800, LoadCom wrote:
> Hello,
>
> I'm resending the question with hope of getting any help.
> sorry for disturbing, but I've just not found the cause.
>
> This small program got compiled but cause a runtime error:
>
> #include <CGAL/Polyhedron_3.h>
> #include <CGAL/Exact_predicates_exact_constructions_kernel.h>
> #include <CGAL/Nef_polyhedron_3.h>
>
> struct Kernel : public CGAL::Exact_predicates_exact_constructions_kernel {};
> typedef Kernel::Point_3 Point_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);
> }
>
> What's the problem?
>
> Thanks.
> Max



Archive powered by MHonArc 2.6.16.

Top of Page