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
>
- [cgal-discuss][Nef_polyhedron] How to convert a Nef_polyhedron_3 into a Nef_polyhedron_2 if meaningful, LoadCom, 01/07/2008
- Re: [cgal-discuss][Nef_polyhedron] How to convert a Nef_polyhedron_3 into a Nef_polyhedron_2 if meaningful, Peter Hachenberger, 01/08/2008
- Re: Re: [cgal-discuss][Nef_polyhedron] How to convert aNef_polyhedron_3 into a Nef_polyhedron_2 if meaningful, LoadCom, 01/09/2008
- Re: Re: [cgal-discuss][Nef_polyhedron] How to convert aNef_polyhedron_3 into a Nef_polyhedron_2 if meaningful, Peter Hachenberger, 01/10/2008
- Re: [cgal-discuss][Nef_polyhedron] How to convertaNef_polyhedron_3 into a Nef_polyhedron_2 if meaningful, Max, 01/11/2008
- [cgal-discuss]Aff_transformation_3 Plane_3::transform_to_2d() const;, Max, 01/12/2008
- Re: [cgal-discuss]Aff_transformation_3 Plane_3::transform_to_2d() const;, Ashwin Nanjappa, 01/16/2008
- Crash on converting Polyhedron_3 to Nef_polyhedron_3 on an OFF input., Stephen Wong, 01/13/2008
- Re: [cgal-discuss] Crash on converting Polyhedron_3 to Nef_polyhedron_3 on an OFFinput., Max, 01/13/2008
- Re: [cgal-discuss] Crash on converting Polyhedron_3 to Nef_polyhedron_3 on an OFF input., Gilbert Bernstein, 01/13/2008
- RE: [cgal-discuss] Crash on converting Polyhedron_3 to Nef_polyhedron_3 on an OFF input., Stephen Wong, 01/13/2008
- Re: Re: [cgal-discuss][Nef_polyhedron] How to convert aNef_polyhedron_3 into a Nef_polyhedron_2 if meaningful, Peter Hachenberger, 01/10/2008
- Re: Re: [cgal-discuss][Nef_polyhedron] How to convert aNef_polyhedron_3 into a Nef_polyhedron_2 if meaningful, LoadCom, 01/09/2008
- Re: [cgal-discuss][Nef_polyhedron] How to convert a Nef_polyhedron_3 into a Nef_polyhedron_2 if meaningful, Peter Hachenberger, 01/08/2008
Archive powered by MHonArc 2.6.16.