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 12:47:44 +0200
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:9DPrrRAoB1arugS5i0VVUyQJP3N1i/DPJgcQr6AfoPdwSP3yrsbcNUDSrc9gkEXOFd2CrakV0qyL4+u6CCRAuc/H6y9SNsQUFlcssoY/oU8JOIa9E0r1LfrnPWQRPf9pcxtbxUy9KlVfA83kZlff8TWY5D8WHQjjZ0IufrymUt2as8Pi3O+7/9jfYh5DmSGmSbJ0NhS/6wvL5ecMho43YJ08wBLSvnpFfaxywnlpIk7b3znx4cK94IRy3S1bp/U75o8KGfHhe6MiTLtESjEiG28w7czv8xLESF3ctTMnTmwKn08QUED+5xbgU8Kpvw==
- Organization: GeometryFactory
On 09/04/2016 05:34 PM, Kelvin_Piroddi wrote:
In the sample code. The detected shapes info is printed out:
std::cout << (*it)->info();
How can one access a certain element of this info such as the radius (for
further calculations) if a sphere was detected?
Thank you
The documentation for the various shapes are available here:
http://doc.cgal.org/latest/Point_set_shape_detection_3/group__PkgPointSetShapeDetection3Shapes.html
The iterator value type is Shape_base, from which all shapes inherits.
You need to use dynamic_cast to check what is the type of the current
primitive (limited to the shapes for which you created a factory)
Sebastien.
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Accessing-information-from-Point-set-shape-dectection-tp4662202.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.