Skip to Content.
Sympa Menu

cgal-discuss - Re: Re: Re: [cgal-discuss] [Nef_polyhedron_3] interior(),closure()and boundary()

Subject: CGAL users discussion list

List archive

Re: Re: Re: [cgal-discuss] [Nef_polyhedron_3] interior(),closure()and boundary()


Chronological Thread 
  • From: Peter Hachenberger <>
  • To:
  • Subject: Re: Re: Re: [cgal-discuss] [Nef_polyhedron_3] interior(),closure()and boundary()
  • Date: Tue, 05 Feb 2008 17:05:51 +0100

On Tue, 2008-02-05 at 23:24 +0800, Max wrote:
> After applying your code update, I've run 3 test cases with the
> following test code:
>
> Nef_polyhedron N_1(Plane_3( 1, 0, 0,-1), Nef_polyhedron::INCLUDED);
> Nef_polyhedron N_2(Plane_3( 1, 0, 0,-1), Nef_polyhedron::EXCLUDED);
> Nef_polyhedron N_pl = N_1 - N_2; // a plane slice
> Nef_polyhedron N_empty(Nef_polyhedron::EMPTY);
>
> CGAL_assertion(N_1.interior() == N_2);
> CGAL_assertion(N_2.interior() == N_2);
> CGAL_assertion(N_pl.interior() == N_empty);
> CGAL_assertion(N_1.closure() == N_1);
> CGAL_assertion(N_2.closure() == N_1);
> CGAL_assertion(N_pl.closure() == N_pl);
> CGAL_assertion(N_1.boundary() == N_pl);
> CGAL_assertion(N_2.boundary() == N_pl);
> CGAL_assertion(N_pl.boundary() == N_pl);
>
> 1)
> typedef Extended_homogeneous<CGAL::Gmpz> Kernel;
> typedef CGAL::Nef_polyhedron_3<Kernel> Nef_polyhedron;
>
> Result: all passed.
>
> 2)
> typedef Extended_homogeneous<CGAL::Gmpzf> Kernel;
> typedef CGAL::Nef_polyhedron_3<Kernel> Nef_polyhedron;
>
> Result: all passed.
>
> 3)
> typedef Extended_homogeneous<CGAL::Gmpzf> Kernel;
> typedef CGAL::Nef_polyhedron_3<Kernel, CGAL::SNC_indexed_items>
> Nef_polyhedron;
>
> Result: compile failed. The cause is "CGAL_error_msg(in SNC_simplify.h) not
> defined"
>
> From another mail I just recieved, I was told:
>
> "Both extended kernels do not work together with SNC_indexed_items, and
> therefore also not with Gmpzf."
>
> So. according to your opinion, this case may not be necessary. However, the
> "CGAL_error_msg not defined" problem seems to be dealt with.

The CGAL_error_msg is a new mechanism and not defined in CGAL 3.3.1. I
already expected problems here, but you can, as you already did, just
remove these lines, or replace them by CGAL_assertion_msg(false,
"--message in here--");

Peter



Archive powered by MHonArc 2.6.16.

Top of Page