Skip to Content.
Sympa Menu

cgal-discuss - Re: Re: [cgal-discuss][Nef_polyhedron]A more complex but still simplequestion

Subject: CGAL users discussion list

List archive

Re: Re: [cgal-discuss][Nef_polyhedron]A more complex but still simplequestion


Chronological Thread 
  • From: Peter Hachenberger <>
  • To:
  • Subject: Re: Re: [cgal-discuss][Nef_polyhedron]A more complex but still simplequestion
  • Date: Tue, 05 Feb 2008 11:36:24 +0100


> I encountered a rediculous problem that I once did before.
>
> with code
>
> Polyhedron_3 P;
> std::cin >> P;
>
> and command line
> [nef.exe] < [sample.off]
>
> it works well. but with code
>
> ReadPolyhedron(path, P);
>
> which is difined as follows:
>
> template <class Polyhedron_3>
> bool ReadPolyhedron(std::string path, Polyhedron_3& P)
> {
> std::ifstream is;
> try { is.open(path.c_str()); } catch(...) { return false; }
> try { is >> P; } catch(...) { is.close(); return false; }
>
> is.close();
> return true;
> }
>
> P is not properly read. it's really strange.

I have no clue, either. But I also have no clue about exception handling
under C++.


> I know nothing about indexed item before. But it works quite well.

That's good to know. Than there is an alternative to
Exact_construction_excat_predicate_kernel. I'm curious about the
performance.

> One more question, the program output 'Constructor not available for this
> Kernel'
> What does it mean? Could this message be ignored?

This means that you called the constructor for creating a halfspace
while you use a standard kernel. This constructor has can not work
without an extended kernel.

Peter



Archive powered by MHonArc 2.6.16.

Top of Page