Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Using leda_real with Nef_polyhedra

Subject: CGAL users discussion list

List archive

[cgal-discuss] Using leda_real with Nef_polyhedra


Chronological Thread 
  • From: Cody Rose <>
  • To:
  • Subject: [cgal-discuss] Using leda_real with Nef_polyhedra
  • Date: Sat, 26 Sep 2009 17:50:16 -0700

Can leda_reals be used as number types for kernels that are meant to support Nef_polyhedron_3s? The following trivial program fails to compile:

#include <CGAL/leda_real.h>
#include <CGAL/Homogeneous.h>
#include <CGAL/Nef_polyhedron_3.h>

typedef leda_real NumberType;
typedef CGAL::Homogeneous<NumberType> Kernel;
typedef CGAL::Nef_polyhedron_3<Kernel> Nef_polyhedron;

int main() {
Nef_polyhedron n;
return 0;
}

with error C2446: ':' : no conversion from 'CGAL::Null_functor::result_type' to 'RT' c:\program files\cgal\include\cgal\nef_s2\normalizing.h

(Cartesian kernels produce similar results).

Chapter 25 of the user manual (regarding Nef_polyhedra) says that "All Cartesian and homogeneous kernels of Cgal are suitable if the number type parameter follows the usual requirements of being a model of the /CGAL::FieldNumberType <cid:>/ concept for the Cartesian kernels, or the /CGAL::RingNumberType <cid:>/ concept for the homogeneous kernels, respectively." leda_real models RingNumberType, but apparently that isn't enough. Is there any way I can get this work?

Cody Rose


  • [cgal-discuss] Using leda_real with Nef_polyhedra, Cody Rose, 09/27/2009

Archive powered by MHonArc 2.6.16.

Top of Page