Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Converting FT to double in Extended_cartesian with Gmpq

Subject: CGAL users discussion list

List archive

[cgal-discuss] Converting FT to double in Extended_cartesian with Gmpq


Chronological Thread 
  • From: Evan Behar <>
  • To:
  • Subject: [cgal-discuss] Converting FT to double in Extended_cartesian with Gmpq
  • Date: Sat, 27 Apr 2013 17:32:04 -0400

Hi,

I have the following code:

#include <CGAL/Polyhedron_3.h>
#include <CGAL/Gmpq.h>
#include <CGAL/Lazy_exact_nt.h>
#include <CGAL/Extended_cartesian.h>

typedef CGAL::Extended_cartesian< CGAL::Lazy_exact_nt<CGAL::Gmpq> > Kernel;
typedef CGAL::Point_3<Kernel>                                       Point;

int main() {
  
  Point p(1.0f,1.0f,1.0f);

  return 0;

When I try to compile this program, I get the following error:

In file included from /opt/local/CGAL-4.1/include/CGAL/assertions.h:34:0,
                 from /opt/local/CGAL-4.1/include/CGAL/basic.h:42,
                 from /opt/local/CGAL-4.1/include/CGAL/Polyhedron_3.h:24,
                 from /home/ebehar/test/test.cpp:1:
/opt/local/CGAL-4.1/include/CGAL/Point_3.h: In instantiation of ‘class CGAL::Point_3<CGAL::Extended_cartesian<CGAL::Lazy_exact_nt<CGAL::Gmpq> > >’:
/home/ebehar/test/test.cpp:12:10:   required from here
/opt/local/CGAL-4.1/include/CGAL/assertions.h:124:6: error: invalid application of ‘sizeof’ to incomplete type ‘boost::STATIC_ASSERTION_FAILURE<false>’
      BOOST_STATIC_ASSERT(EX)
      ^
/opt/local/CGAL-4.1/include/CGAL/Point_3.h:47:3: note: in expansion of macro ‘CGAL_static_assertion’
   CGAL_static_assertion((boost::is_same<Self, typename R_::Point_3>::value));


Is there something additional I have forgotten to do in order to use the Extended_cartesian kernel with Point_3 or Vector_3?

Thanks,
Evan



Archive powered by MHonArc 2.6.18.

Top of Page