Subject: CGAL users discussion list
List archive
- From: "Dan Hayes" <>
- To:
- Subject: 3D Approximate_min_ellipsoid_d maple_example?
- Date: Mon, 16 Apr 2007 10:52:16 -0500
Dear all,
I'm trying to modify the Approximate_min_ellipsoid_d example program (maple_example.C) to work on 3-dimensional points. Does CGAL support 3-d calculations in this way? I keep getting compile errors just from including what I thought were the right files... The code below is throwing errors, but if I commet out the line:
typedef Traits::Point Point;
then it compiles fine... Any ideas?
#include <vector>
#include <iostream>
#include <iomanip>
#include <CGAL/basic.h>
#include <CGAL/Cartesian_d.h>
#include <CGAL/MP_Float.h>
#include <CGAL/point_generators_d.h>
#include <CGAL/Approximate_min_ellipsoid_d.h>
#include <CGAL/Approximate_min_ellipsoid_d_traits_3.h>
#include <CGAL/Range_segment_tree_traits.h>
typedef CGAL::Cartesian_d<double> Kernel;
typedef CGAL::MP_Float ET;
typedef CGAL::Approximate_min_ellipsoid_d_traits_3<Kernel, ET> Traits;
typedef Traits::Point Point;
//typedef std::vector<Point> Point_list;
//typedef CGAL::Approximate_min_ellipsoid_d<Traits> AME;
int main(int argc, char **argv)
{
}
[user@localhost /usr/share/CGAL/examples/Approximate_min_ellipsoid_d]# make
g++ -I../../include -Wall -frounding-math -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -I/usr/lib64/qt- 3.3/include -c maple_example.C
/usr/include/CGAL/Approximate_min_ellipsoid_d_traits_3.h: In instantiation of 'CGAL::Approximate_min_ellipsoid_d_traits_3<CGAL::Cartesian_d<double, CGAL::Linear_algebraCd<double, std::allocator<double> > >, CGAL::MP_Float>':
maple_example.C:19: instantiated from here
/usr/include/CGAL/Approximate_min_ellipsoid_d_traits_3.h:32: error: no type named 'Point_3' in 'class CGAL::Cartesian_d<double, CGAL::Linear_algebraCd<double, std::allocator<double> > >'
/usr/include/CGAL/Approximate_min_ellipsoid_d_traits_3.h:33: error: no type named 'Cartesian_const_iterator_3' in 'class CGAL::Cartesian_d<double, CGAL::Linear_algebraCd<double, std::allocator<double> > >'
/usr/include/CGAL/Approximate_min_ellipsoid_d_traits_3.h:36: error: no type named 'Point_3' in 'class CGAL::Cartesian_d<double, CGAL::Linear_algebraCd<double, std::allocator<double> > >'
/usr/include/CGAL/Approximate_min_ellipsoid_d_traits_3.h:41: error: no type named 'Cartesian_const_iterator_3' in 'class CGAL::Cartesian_d<double, CGAL::Linear_algebraCd<double, std::allocator<double> > >'
make: *** [maple_example.o] Error 1
- 3D Approximate_min_ellipsoid_d maple_example?, dhayes501, 04/17/2007
- <Possible follow-up(s)>
- 3D Approximate_min_ellipsoid_d maple_example?, Dan Hayes, 04/17/2007
Archive powered by MHonArc 2.6.16.