Subject: CGAL users discussion list
List archive
- From: Martin Baeker <>
- To:
- Subject: Re: [cgal-discuss] Converting quantities with different kernels
- Date: Wed, 17 Feb 2010 08:05:23 +0100 (CET)
- Organization: Institut fuer Werkstoffe TU Braunschweig
Dear Sebastien,
that seems to be excatly what I needed. Thanks a lot,
Martin.
> Martin Baeker wrote:
> > Dear all,
> >
> > in my last question I asked about Nef_polyhedra. by now I found out
> > that my problem was due to having an extended kernel.
> >
> > So here is the next (hopefully more simple) question: Can I convert
> > geometric quantities in an easy way between different kernels?
> >
> > I have:
> >
> > typedef CGAL::Homogeneous<CGAL::Gmpz> Kernel;
> > typedef CGAL::Extended_homogeneous<CGAL::Gmpz> EKernel;
> > typedef Kernel::Plane_3 Plane_3;
> > typedef Kernel::Point_3 Point;
> > typedef Kernel::Vector_3 Vector_3;
> > typedef EKernel::Plane_3 EPlane_3;
> > typedef EKernel::Point_3 EPoint;
> > typedef EKernel::Vector_3 EVector_3;
> >
> > Is there a simple way to convert a Plane_3 into a EPlane_3 (and the
> > same with vectors and points) and vice versa?
> Hello,
>
> You should have look at Homogeneous_converter described here:
>
> http://www.cgal.org/Manual/last/doc_html/cgal_manual/Kernel_23_ref/Class_Homogeneous_converter.html#Index_anchor_295
>
> Then depending on what is your "extended kernel", you may need to copy extra
> information by hand.
>
> S.
>
> > Thanks for any help,
> >
> > Martin.
> >
> >
> > Priv.-Doz. Dr. Martin Bäker
> > Institut für Werkstoffe
> > Technische Universität Braunschweig
> > Langer Kamp 8
> > 38106 Braunschweig
> > Germany
> > Tel.: 00-49-531-391-3073
> > Fax 00-49-531-391-3058
> > <>
>
>
> --
> You are currently subscribed to cgal-discuss.
> To unsubscribe or access the archives, go to
> https://lists-sop.inria.fr/wws/info/cgal-discuss
>
>
Priv.-Doz. Dr. Martin Bäker
Institut für Werkstoffe
Technische Universität Braunschweig
Langer Kamp 8
38106 Braunschweig
Germany
Tel.: 00-49-531-391-3073
Fax 00-49-531-391-3058
<>
- [cgal-discuss] Converting quantities with different kernels, Martin Baeker, 02/16/2010
- Re: [cgal-discuss] Converting quantities with different kernels, Sebastien Loriot (GeometryFactory), 02/16/2010
- Re: [cgal-discuss] Converting quantities with different kernels, Martin Baeker, 02/17/2010
- Re: [cgal-discuss] Converting quantities with different kernels, Sebastien Loriot (GeometryFactory), 02/16/2010
Archive powered by MHonArc 2.6.16.