Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Accessing information from Point set shape dectection

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Accessing information from Point set shape dectection


Chronological Thread 
  • From: Kelvin_Piroddi <>
  • To:
  • Subject: Re: [cgal-discuss] Accessing information from Point set shape dectection
  • Date: Mon, 5 Sep 2016 06:57:07 -0700 (PDT)
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=SoftFail ; spf=None
  • Ironport-phdr: 9a23:pYCxXhaV9g3srRu3Ed/S8t7/LSx+4OfEezUN459isYplN5qZpsu/bnLW6fgltlLVR4KTs6sC0LuP9f2wEjFRqdbZ6TZZL8wKD0dEwewt3CUeQ+e9QXXhK/DrayFoVO9jb3RCu0+BDE5OBczlbEfTqHDhpRQbGxH4KBYnbr+tQt2a3IyL0LW59JTXJglJnzGgeqhaLROsrAyXuNNFr5FlL/MSxx/Xo31/Q+VMwm9kJBrHnA79/MC88J9L/CFZuvZn/MlFB/apN58kRKBVWWx1e1s+49fm4EHO

when i run the following:

typedef CGAL::Shape_detection_3::Sphere<Traits> Sphere_shape;

Efficient_ransac::Shape_range::iterator it = shapes.begin();
while (it != shapes.end()) {
boost::shared_ptr<Efficient_ransac::Shape> shape = *it;

Sphere_shape sphere_shape = dynamic_cast<Sphere_shape*>(shape.get());

}
i get the following error:

error C2440: 'initializing': cannot convert from 'Sphere_shape *' to
'CGAL::Shape_detection_3::Sphere<Traits>'

Sorry i am new to cgal and c++.

Thank you



--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Accessing-information-from-Point-set-shape-dectection-tp4662202p4662212.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.18.

Top of Page