Subject: CGAL users discussion list
List archive
Re: [cgal-discuss] [EXTERNAL] Re: retrieve associated information with halfspaces after a halfspace intersection
Chronological Thread
- From: "Sebastien Loriot (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] [EXTERNAL] Re: retrieve associated information with halfspaces after a halfspace intersection
- Date: Fri, 22 Feb 2019 11:42:44 +0100
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:CzmfPBZ7ykwLTCCQzCiR27r/LSx+4OfEezUN459isYplN5qZps2+bB7h7PlgxGXEQZ/co6odzbaO4+a4ASQp2tWoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6nK94iQPFRrhKAF7Ovr6GpLIj8Swyuu+54Dfbx9HiTahYr5+Ngm6oRnMvcQKnIVuLbo8xAHUqXVSYeRWwm1oJVOXnxni48q74YBu/SdNtf8/7sBMSar1cbg2QrxeFzQmLns65Nb3uhnZTAuA/WUTX2MLmRdVGQfF7RX6XpDssivms+d2xSeXMdHqQb0yRD+v6bpgRh31hycdLzM37X/ZisJwgqxYrhyuqRNwzIzIb4+aL/d+YqHQcMkGSWZdUMtcVSpMCZ68YYsVCOoBOP5Vo4fgqVQQthSxHxKsBP/uyjBWgH/9wKs00+M7EQHH2wwgA88FvHDVotrrM6cSVP66zLXSzTTDb/1Zwyvy6JTPchA7ofCAWLx8etfWxEk0EwPFiU+QqY3iPzOJzOgNtmyb4vFvVeKqkWEnqgVxriKzyccrj4nEn4QYwU3K+yV+xYY6P9y4SEhjbNG4H5tfrSWaO5FxQsM4TGFkoD46yqcBuZ68cigK0JMnxx/Za/ybaYSH/hXjVOOXLDxlh3xlYKqyiwiu/UWk0OHxVcm53ExXoiZbkdTArHAA2hLL5sWFSfZx5Fmt1DmO2gzJ9+1JJU45mbDZJpMhxLM7i4Advl7ZHiDsnUX7lK+WeVsg+uiv8+nnZ6/ppp6YN4NthAD+N7kiltWxAek4PAUCRWeb+eO71L3s+U32Xq9GgeExkqncqJzaJMIbqbClAwJNzIov9xKyAy2l3dkYh3ULMUxJdRGdg4XpNVzCOPX4Au2+g1Sonjdr3ffGPrj5D5XWKnjDl63hfbd6605A0gYzyNRf6olbCrEEOv3zW0vxuMbEAR8+Ngy42/znB8ll1oMCRWKPBbeUP7/dsVCS4uIjOvSDZI4OuDnhNvgl/OXugGQimV4deKmpxYEYZGq5HvRgOUWZYGDjjs0PEWcQ7UIDSvf3ggiCTSJLfCT1GL8m4j02Bo+gFoqFXpqqh7KZ2ya9AttdYWUBFArLDG3sIJjRW+sQcDnXeeZWpScVUKCoDY4nzxCn8gHg/KF2K/LdzSweu5XU39d846iJuR0z7jdpFN/T3zShUEBY22xGTGoG8aV9nV1/xH672pAiueBxDZkNydxgHB1vMKnX4/5/N439Slj9JIfMV22LbdKiJRctSJcKhuUDZH56NvSdsk/SxRixBPEQwoCWO6IW9b+D1WjyPcNwyn3Y7qYKr1orecZ3DkPj3vYj1SjTAIrbiB2JvPrkbvENxQDqrHbe61Wsuh98fDZPQY7OQ3AcfXzxiN3y2WWeROGPGbUHEwlfxfWFZKYfOeHu2F5JTfOmNNXFaH+qgE+xAwyJz/WCdtnEYWIYiW/mBUINiBwS8HDOEQ8kByC96yLxATtrGE71cm3l+vV5smL6BAdg1AWNdUxmy/yw/jYagPWdT7UY2bdS63RpkCl9AFvoh4GeMNGHvQc0JPwNM+N4209O0CfijyI4O5WhK654gVtHKlZ4ukrv01N8DYASyJF2/kNv9xJ7LOej6H0EbymRhMmiNbjeK2209xeqOfaPhwPule2O86JK08wW7lXuuAbzSxgn+nRjlsZQij6Su86MAw0VXpb8FE0w8koiqg==
Would this be sufficient:
https://doc.cgal.org/latest/Convex_hull_3/Convex_hull_3_2extreme_indices_3_8cpp-example.html
or you need the convex hull as well?
Sebastien.
On 2/22/19 11:29 AM, Maarten Moesen wrote:
Dear Sebastien,
Dear CGAL community,
Thank you for your answer. Indeed, it doesn't look too hard.
I'm now having a similar question about convex_hull_3: what is the
recommended way to keep track of the vertices in the convex hull?
For example: if I have originally a large vector or list of points, possibly
with some info associated with them. How can I efficiently determine which
points are in the convex hull? Can I access from the resulting convex
polyhedron the original iterator? Can I associate some info to each point?
Best regards,
Maarten
-----Original Message-----
From:
<>
On Behalf Of Sebastien Loriot (GeometryFactory)
Sent: Friday, 22 February, 2019 09:50
To:
Subject: [EXTERNAL] Re: [cgal-discuss] retrieve associated information with
halfspaces after a halfspace intersection
With the current code there is no entry in the API. However it should not be
not hard to do it. Indeed, looking at the
halfspace_intersection_with_constructions_3.h for example, you'll see that
when a new face is created in build_dual_polyhedron (which is building the
dual of the dual, i.e. the final intersection) we iterate over vertices of
the convex hull of the dual (one vertex = one plane) so we could add a
property in the API to add that information.
Best regards,
Sebastien.
On 2/22/19 8:19 AM, Maarten Moesen wrote:
Dear CGAL community,
From a large vector of planes (halfspaces), in which each plane has
some information attached, I'd like to create a convex polyhedron
using
CGAL::halfspace_intersection_3() and
halfspace_intersection_with_constructions_3().
How can I efficiently identify in the resulting polyhedron which
planes where selected, so that I can efficiently retrieve the
information associated to each selected plane?
Best regards,
Maarten
--
Maarten Moesen, PHD
Polymer Physicist Computational Modeling
HUNTSMAN (Europe) BVBA
Everslaan 45
B-3078 Everberg
Belgium
VAT: BE - 0468.807.829
Office Phone: 0032 (0) 2 758 9962
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://urldefense.proofpoint.com/v2/url?u=https-3A__sympa.inria.fr_sympa_info_cgal-2Ddiscuss&d=DwID-g&c=XEmjTyjfAPcP2RtAp-6FGA&r=m_cDzmT5gx2T28-wSEGolLNtn-S-ReoPoEIWT7yrZso&m=TuWVJou7bxkrmeicvRgCHkeSePSF-004JHholzs0xC4&s=yqFO0y5NWJn6LDPWxCcvhks_OMacWN4c6IxiHIjvdSo&e=
- [cgal-discuss] retrieve associated information with halfspaces after a halfspace intersection, Maarten Moesen, 02/22/2019
- Re: [cgal-discuss] retrieve associated information with halfspaces after a halfspace intersection, Sebastien Loriot (GeometryFactory), 02/22/2019
- RE: [cgal-discuss] [EXTERNAL] Re: retrieve associated information with halfspaces after a halfspace intersection, Maarten Moesen, 02/22/2019
- Re: [cgal-discuss] [EXTERNAL] Re: retrieve associated information with halfspaces after a halfspace intersection, Sebastien Loriot (GeometryFactory), 02/22/2019
- RE: [cgal-discuss] [EXTERNAL] Re: retrieve associated information with halfspaces after a halfspace intersection, Maarten Moesen, 02/22/2019
- Re: [cgal-discuss] [EXTERNAL] Re: retrieve associated information with halfspaces after a halfspace intersection, Sebastien Loriot (GeometryFactory), 02/22/2019
- RE: [cgal-discuss] [EXTERNAL] Re: retrieve associated information with halfspaces after a halfspace intersection, Maarten Moesen, 02/22/2019
- Re: [cgal-discuss] retrieve associated information with halfspaces after a halfspace intersection, Sebastien Loriot (GeometryFactory), 02/22/2019
Archive powered by MHonArc 2.6.18.