Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss][Nef_polyhedron] How to convert a Nef_polyhedron_3 into a Nef_polyhedron_2 if meaningful

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss][Nef_polyhedron] How to convert a Nef_polyhedron_3 into a Nef_polyhedron_2 if meaningful


Chronological Thread 
  • From: Peter Hachenberger <>
  • To:
  • Subject: Re: [cgal-discuss][Nef_polyhedron] How to convert a Nef_polyhedron_3 into a Nef_polyhedron_2 if meaningful
  • Date: Tue, 08 Jan 2008 11:37:42 +0100

Hi Max,

we never really thought about this conversion. So, we don't have it. An
easy thing to do is just to store the points of the Nef_3 and then pass
those points to the constructor of the Nef_2. I guess that any
conversion tool I could write would not be more efficient than that. The
main disadvantage to a real conversion is, that you loose the marks. The
constructor does not allow you to choose for every edge whether it is
selected or not. Does that help you?

Peter

On Mon, 2008-01-07 at 15:38 +0800, LoadCom wrote:
> Hello,
>
> Suppose I have a closed Nef_polyhedron_3 N, and I construct a plane with
> Nef_polyhedron_3 in this manner
>
> Nef_polyhedron_3 N; // closed
>
> // now constructing a plane Nef
> Plane_3 pl(1, 1, 1, 0);
> Nef_polyhedron_3 N_plane(Nef_polyhedron_3(pl) * !Nef_polyhedron_3(pl,
> Nef_polyhedron::EXCLUDED));
>
> // Now I intersect these 2 Nef:
>
> Nef_polyhedron_3 N_res = N * N_plane;
>
> Now N_res is actually a Nef_polyhedron_2, but is there a way to convert it
> into a Nef_polyhedron_2
> and then explore it accordingly?
>
> Thanks in advance.
> Max
>



Archive powered by MHonArc 2.6.16.

Top of Page