Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] How to construct a 3D Traits::Point? (Approximate_min_ellipsoid_d_traits)

Subject: CGAL users discussion list

List archive

[cgal-discuss] How to construct a 3D Traits::Point? (Approximate_min_ellipsoid_d_traits)


Chronological Thread 
  • From: mba03gl <>
  • To:
  • Subject: [cgal-discuss] How to construct a 3D Traits::Point? (Approximate_min_ellipsoid_d_traits)
  • Date: Tue, 29 Jun 2010 23:53:18 -0700 (PDT)


Dear all,
I been try to modify the Approximate_min_ellipsoid_d example to input my
points like:

typedef CGAL::Approximate_min_ellipsoid_d<Traits> AME;
Point inP;
Point_list P;
for(int i=0;i<5;i++)
{
inP=Point (inArr[i*3],inArr[i*3+1],inArr[i*3+2] );
P.push_back(inP);
}

when I include <CGAL/Approximate_min_ellipsoid_d_traits_3.h>
the program goes fine with the command:AME ame(eps, P.begin(), P.end(),
traits);
when it finished, ame.dimension() does return "3" but "assertion violation!"
occured every time I try to get the 3rd dimension related information.
e.g. I can get ame.defining_vector (0) but not ame.defining_vector (2).

when I include <CGAL/Approximate_min_ellipsoid_d_traits_d.h>
It seems fine with 2D points but the same "assertion violation!" occured
with 3D points.
Any ideas?

Regards


--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/How-to-construct-a-3D-Traits-Point-Approximate-min-ellipsoid-d-traits-tp2272677p2272677.html
Sent from the cgal-discuss mailing list archive at Nabble.com.


  • [cgal-discuss] How to construct a 3D Traits::Point? (Approximate_min_ellipsoid_d_traits), mba03gl, 06/30/2010

Archive powered by MHonArc 2.6.16.

Top of Page