Skip to Content.
Sympa Menu

cgal-discuss - Re: Re: Re: [cgal-discuss] Nef Polyhedron no simple to OFF

Subject: CGAL users discussion list

List archive

Re: Re: Re: [cgal-discuss] Nef Polyhedron no simple to OFF


Chronological Thread 
  • From: <>
  • To:
  • Subject: Re: Re: Re: [cgal-discuss] Nef Polyhedron no simple to OFF
  • Date: Fri, 19 Dec 2008 13:25:31 +0100 (CET)

One more simple question. To use the kernel
Exact_predicates_exact_constructions_kernel, is necessary to have instaled
LEDA
library previously or something? I'm trying to use this kernel but always
shows
me the sames errors.

I've tested this simple example of CGAL Manual, but doesn't work.

#include <CGAL/Exact_predicates_exact_constructions_kernel.h>
#include <CGAL/Polyhedron_3.h>
#include <CGAL/IO/Polyhedron_iostream.h>
#include <CGAL/Nef_polyhedron_3.h>
#include <CGAL/Nef_3/SNC_indexed_items.h>
#include <CGAL/IO/Nef_polyhedron_iostream_3.h>

typedef CGAL::Exact_predicates_exact_constructions_kernel Kernel;
typedef CGAL::Polyhedron_3<Kernel> Polyhedron;
typedef CGAL::SNC_indexed_items Items;
typedef CGAL::Nef_polyhedron_3<Kernel, Items> Nef_polyhedron;

int main() {

Polyhedron P;
std::cin >> P;
Nef_polyhedron N(P);

std::cout << "Exact_predicates_exact_constructions_kernel +
SNC_indexed_items"
<< std::endl
<< " allows efficient handling of input "
"using floating point coordinates"
<< std::endl;

if(N.is_simple()) {
N.convert_to_Polyhedron(P);
std::cout << P;
}
else {
std::cout << N;
}
}

The errors are the sames that I had in my code.



Archive powered by MHonArc 2.6.16.

Top of Page