Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Converting quantities with different kernels

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Converting quantities with different kernels


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Converting quantities with different kernels
  • Date: Tue, 16 Feb 2010 16:37:08 +0100

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
e-mail
<>




Archive powered by MHonArc 2.6.16.

Top of Page