Subject: CGAL users discussion list
List archive
- From: houes <>
- To:
- Subject: [cgal-discuss] find the faces/points' ids on the convex hull of a polyhedron
- Date: Mon, 23 Apr 2018 21:50:28 -0700 (MST)
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=SoftFail ; spf=Pass
- Ironport-phdr: 9a23:EtKa1RQeHOcFIJ1aETKUSXwjWtpsv+yvbD5Q0YIujvd0So/mwa69YBSN2/xhgRfzUJnB7Loc0qyK6/umATRIyK3CmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TW94jEIBxrwKxd+KPjrFY7OlcS30P2594HObwlSizexfb1/IA+qoQnNq8IbnZZsJqEtxxXTv3BGYf5WxWRmJVKSmxbz+MK994N9/ipTpvws6ddOXb31cKokQ7NYCi8mM30u683wqRbDVwqP6WACXWgQjxFFHhLK7BD+Xpf2ryv6qu9w0zSUMMHqUbw5Xymp4qF2QxHqlSgHLSY0/m/XhMJuj6xVvR2uqABwzYPPfIGYNuZycr/Bcd8GW2ZMWNtaWSxbAoO7aosCF+oBPeFFr4bjvFsFsByzBQ2tBOPgyj9Imn/23aon0+s/CgHLxwMgH9cUv3TVqNX5LrsdUeewzKTRyzjIcv1Y2TD46IfScxAhp+mBXbRqfsXK0kYvEx3Kgk+MpoziOjOZzv8Ns3SB4OV8VuKvjHAnpB9rojihwscsjYfIipgJxVDD8CV0xps+K96gSENjfNKpEYVcuzuEO4Z2TM4uWXxktSg0x7Ecu5O3Yi4Hw4k9yRHFcfyIaY2I7wrjVOmPJTd4g2poeLSwihqo90iv0PbzWdKw0FlUtCZKjt7MtnUV2xzS7MiIVOd981+81TuOyQzf8P9ILEA6mKbBNpIszLA9moARvEjdBiP2nV/5jK6SdkUq4Oio7OHnb63ipp+dOI90ih3+MqQpmsyiH+s4KRMDX2ee+eum1b3j+Vf1T6lNjv0ziqXZqozVJdwHpq6lBA9Yypos6xmlADeiydgXgHgHLElZdxKalIjpIErDIOv4DPe6m1Sjii1nx/HAPr37A5XCNGLPkLn7feU110kJwwU6yZVT5olfF6oaCPP1QE748tLCXTEjNAnhw+H6Bc41gocfVmKTAqiEPbj6vlqB5+ZpKO6JMtxG8A3hIuQosqa9xUQynkUQKPHwjMknLUugF/EjGH23JH/lg9MPC2AP51NsQ+njiVnEWjlWNS3rA/AMowojAYfjNr/tA5i3ieXYjii+F5xSIGtBDwLUSCq6R8C/Q/4JLRmqDIphnzgDDOXzTdNn0xikvgv3jbFgK7iN9w==
Hello, I have a set of vertices from Polyhrdron_3, the vertices in Polyhedron
are indexed 0,1,...n using id().
Now, I want to find the vertices that are on the convex hull, and return
*the ids of those vertices*, or the best is to return the* ids of faces that
are on the 3D convex hull*.
Simple use of convex_hull_3(pts.begin(),pts.end(),sm) only gives the Point_3
with no id information, and using the convex points' coordinates to match
polyhedron face does not seems to be the right way.
I searched online to do convex hull algorithm with Point that has id, here
is what I found:
https://stackoverflow.com/a/43732224
it create a new model of convex_hull_2_traits where it defined the new
Point_3 to be std::pair<K::Point_3,unsigned>. this way the id information is
stored in the pair. However, it's done for 2D convex hull algorithm.
I am following the method to create a convex_hull_3_traits, but failed. It
seems convex_hull_3_traits is much harder. I attached my code.
Please help, Thank you so much! convex_hull_3_traits.cpp
<http://cgal-discuss.949826.n4.nabble.com/file/t375941/convex_hull_3_traits.cpp>
--
Sent from: http://cgal-discuss.949826.n4.nabble.com/
- [cgal-discuss] find the faces/points' ids on the convex hull of a polyhedron, houes, 04/24/2018
Archive powered by MHonArc 2.6.18.