Subject: CGAL users discussion list
List archive
- From: Simon Giraudot <>
- To:
- Subject: Re: [cgal-discuss] Point Set Shape Detection Color Visualization Example
- Date: Tue, 20 Feb 2018 10:52:43 +0100
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=None ; spf=None
- Ironport-phdr: 9a23:xMf9FhDsfAuGOH4PQFfNUyQJP3N1i/DPJgcQr6AfoPdwSPX6pMbcNUDSrc9gkEXOFd2Cra4c0KyO6+jJYi8p2d65qncMcZhBBVcuqP49uEgeOvODElDxN/XwbiY3T4xoXV5h+GynYwAOQJ6tL1LdrWev4jEMBx7xKRR6JvjvGo7Vks+7y/2+94fcbglUijexe69+IAmrpgjNq8cahpdvJLwswRXTuHtIfOpWxWJsJV2Nmhv3+9m98p1+/SlOovwt78FPX7n0cKQ+VrxYES8pM3sp683xtBnMVhWA630BWWgLiBVIAgzF7BbnXpfttybxq+Rw1DWGMcDwULs5Xymp4aV2Rx/ykCoJKiA38G/XhMJzgqxUrh2uqB5jzIDbe4yVKPlzc7nBcd8GS2dMXsBcXDFBDIOmaIsPCvIMM/tZr4n4oFsOqwa1CwitBOP10DBIm2L53aom0+88FgzGxw0gH9cJsHTSttn1O6YSUfqvw6nV0DrDaO9W1Czy6IfWdRAhpO+DXa5qccvRx0kgDR/KjkmXqYz/PzKZzPgCs2+e7+d5U++klmApqwZ0oje1x8csjJHEhoQPxV/f7ip5xJg6KcekR058ZN6oCJRQtyCGN4t2X8MtWHtktzo9yr0DoZK7czYFyJMixxHBd/yHaYiJ4hz5W+mNPTd4g2hlebKlixmu9kigz+vxXdS33lZStidIndjBumoQ2xDP6sWLUPRw80m71TuL2Q3f8vxILEQ6mKbBNpIt3rE9moAdvEjeBCP6hVn6gLKQe0454Oan8f7nba/jppKEN497lAX+MqM2l8G+G+g4Nw8OU3WZ9OmyzrHj+Ff2QLROjvEvlanZrYzaKd4cpq6nAw9ZyIAj5AijDzu+0dQYm2cILE5ddR+IjoXlIUzCLOz4APuljFmhni1nyvTIM7H5B5XCNHnDkLPvfbZn7E5czRI+zcte55JRDbEBJuj/WkDwtNzCFBA5LhG7w+H7CNhm2YMRR2WPAqqHP6POq1+J5uwvLPOQa48Jvzb9Mfgk6+Tygn8+nF8RZbOp0ocPaHCkAvRmJF2UbmbjgtgbFWcGpxcxTO3xiFKeTD5TfG2yUrkn5jA7DYKmFZ3MSpqsgLyHxie7H4dZanpIClCWQj/UcNCPVP4ILS6TOcR8iScsVL67SoZn2wv9mhX9zu9cL+/T/GU3tIjqydRy+6WHjhA38joyAMWH2nyBSH1ckW4PQjIqxrFxqEdhzU2Sl6N/hqoLRpRo+/pVX1JiZtbnxOtgBoWqA1OTTpKyUF+jB+6eL3Q0R9M1zcUJZhwkSdqviRXOwzC7DbYei7uRFdo/9aeOhyGtdfY48G7P0ewat3djWtFGbzT0iaN48gXPHZ/Hmk6FkLy7M68b2XyVrTrR/S+1pEhdFTVIf+DFUHQYPBWE85L84RqdFPmrALUjdwxc1YiFNKsMbND13w1L
Hello,
The efficient_RANSAC_point_access.cpp example is exactly what you want. The fact that you are using a different data structure makes no difference apart from the type of the retrieved point. In your case, it would be a CGAL::Point_set_3::Index instead of a Point_with_normal in the example (and you can then use this index to fill whatever Point_set_3::Property_map you want, a color, a plane_id, …).
Most of the figures where done using the Polyhedron_3 demo which has a Shape Detection plugin that you can use to easily test the package (and which produces the colored outputs). For the source code, see: https://github.com/CGAL/cgal/blob/master/Polyhedron/demo/Polyhedron/Plugins/Point_set/Point_set_shape_detection_plugin.cpp
(Note that the demo uses a specialized version of CGAL::Point_set_3, so this code might actually be quite close to what you are looking for.)
Best regards,
--
Simon Giraudot, PhD
R&D Engineer
GeometryFactory - http://geometryfactory.com/
Le 20/02/2018 à 10:33, williamlai3a a écrit :
Dear All,
I am testing the Point Set Shape Detection concept, while I see in the User
Manual page, there are beautiful color visualization of the resulting shape
detection, e.g. Figure 72.1, 72.2, 72.3, etc.
However, it seems I cannot find an example teaching how to map the class
label of the shape back to the point set.
The "Point_set_shape_detection_3/efficient_RANSAC_point_access.cpp" example
seems to be touching some edge of what I want, but unfortunately I am using
Point_Set_3 as my input data structure.
I am wondering if it is possible to release the example code for outputing
Figure 72.1/72.2/72.3 as well.
Thank you very much!
William
--
Sent from: http://cgal-discuss.949826.n4.nabble.com/
- [cgal-discuss] Point Set Shape Detection Color Visualization Example, williamlai3a, 02/20/2018
- Re: [cgal-discuss] Point Set Shape Detection Color Visualization Example, Simon Giraudot, 02/20/2018
Archive powered by MHonArc 2.6.18.