Subject: CGAL users discussion list
List archive
- From: "Sebastien Loriot (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] Accessing information from Point set shape dectection
- Date: Mon, 05 Sep 2016 16:01:48 +0200
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:bssy9hJkkMRaoaSFm9mcpTZWNBhigK39O0sv0rFitYgXI/XxwZ3uMQTl6Ol3ixeRBMOAuqsC1rqd7vGoGTRZp83e4DZaKN0EfiRGoPtVtjRoONSCB0z/IayiRA0BN+MGamVY+WqmO1NeAsf0ag6aiHSz6TkPBke3blItdaymUrLV2s+43uT395zIaBhTnxK8Z6lzJVO4t1b/rM4T1MFZJ6w40QfIr30AX+NMxGR0bRK8khH569uq7bBq+DhXoeNgvYYUSqH9ZaU/UfpdCBwpNmk04IvgshyVHljH3WcVTmhDykkAOAPC9hyvBpo=
- Organization: GeometryFactory
Sphere_shape sphere_shape = should be Sphere_shape* sphere_shape =
On 09/05/2016 03:57 PM, Kelvin_Piroddi wrote:
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.
- [cgal-discuss] Accessing information from Point set shape dectection, Kelvin_Piroddi, 09/04/2016
- Re: [cgal-discuss] Accessing information from Point set shape dectection, Sebastien Loriot (GeometryFactory), 09/05/2016
- Re: [cgal-discuss] Accessing information from Point set shape dectection, Kelvin_Piroddi, 09/05/2016
- Re: [cgal-discuss] Accessing information from Point set shape dectection, Sebastien Loriot (GeometryFactory), 09/05/2016
- Re: [cgal-discuss] Accessing information from Point set shape dectection, Kelvin_Piroddi, 09/05/2016
- Re: [cgal-discuss] Accessing information from Point set shape dectection, Sebastien Loriot (GeometryFactory), 09/05/2016
- Re: [cgal-discuss] Accessing information from Point set shape dectection, Kelvin_Piroddi, 09/05/2016
- Re: [cgal-discuss] Accessing information from Point set shape dectection, Sebastien Loriot (GeometryFactory), 09/05/2016
- Re: [cgal-discuss] Accessing information from Point set shape dectection, Kelvin_Piroddi, 09/05/2016
- Re: [cgal-discuss] Accessing information from Point set shape dectection, Sebastien Loriot (GeometryFactory), 09/05/2016
Archive powered by MHonArc 2.6.18.