Subject: CGAL users discussion list
List archive
- From: "Sebastien Loriot (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] Get coordinates from face vertex in a Polyhedron
- Date: Fri, 24 May 2019 09:36:24 +0200
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:4+G8HhI9DvFmV1stbtmcpTZWNBhigK39O0sv0rFitYgeLP7xwZ3uMQTl6Ol3ixeRBMOHsqsC0rOL+Pm6ACQp2tWoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6nK94iQPFRrhKAF7Ovr6GpLIj8Swyuu+54Dfbx9HiTagfL9+Ngi6oRjRu8UZnIduNLs9wQbVr3VVfOhb2XlmLk+JkRbm4cew8p9j8yBOtP8k6sVNT6b0cbkmQLJBFDgpPHw768PttRnYUAuA/WAcXXkMkhpJGAfK8hf3VYrsvyTgt+p93C6aPdDqTb0xRD+v4btnRAPuhSwaMTMy7WPZhdFqjK9DvRyvuRJ/zY7Xbo+bOvVxcaHScs8VS2daQsZcVTZMDp+gY4YBDecMO/tToYnnp1sJqBuzHQegCv7xxTBTnHD2xrE60+U/HgHAwQcuGdUOsG7VrNXyKKcZTOS5wqjWwjXEavNZxyv96JLIcx4hu/6DQa5wcc3LyUgvEg/JgEibpIv+PzOR0eQNqWmb7+18Ve61jm4nrxp8ojeqxsg2i4nJgpgZxUzD9SV82Ys4I8CzRkB8Yd6hCpRQtieaOpNwQsw4WG5noyI6xaMctZGneygKzZIqzAPcZfyfa4WE/A7vWeKLLTp7hH9pYq+ziwix/ES6xeDxUtG43VRJoyZfjNXBuXEA2wbO5sWDRPZx5EWs1DaJ2gvO8O9LO1o0mrDeK5M5wr4/iJ4TsUPbEy/zgkr2jauWelwq++it9ujre7vmq5CYOoNuhQH+NaMumsO7AesmKAQBQ2+b+eGk2L3i+032XqlKg+UonqXFtJ3WP8cWq66jDwNIzIou6AyzAjii3dgAmHkINlNFeBaJj4jzPFHOJej1Dey7g1SrijdrxvfGPqH7DpXIKnjOi7jhfbNn5E5dzAo/18xQ55VRCr0ZOvL8RlfxtMDEDh8+KwG73+nnB8951o8HRG2PA7SZP7/PsV+T/eIiOPKMZY8QuDblMfcp/f/ujXkjmV8cZ6alx5UXaGrrVshhdk6WaH6pjtYaGnoRpSI/SvbrgRuMS219fXG3CugH6zsyE56nAIGLYoe3gbudlGeUE5pTa3xcG36FGmvvbZTFEb9YcyaVOM5mjnoBUZCuToYg0VelswqsmOkvFfbd5iBN7cGr79Ny/eCGzUhjpwwxNNyU1iS2d08xm2oJQzEs26Um+B5yz16C1e5zhPkKTIUPtcMMaR8zMNvn98I/E8r7A1uTcdKASVLgSdKjU2loE4ABhuQWakM4IO2MyxDO2y3wXu0Qnr2PQYMxq+fSgym3KMF6xHLLkqImigt+Tw==
face->halfedge()->vertex()->point().x() // first vertex
face->halfedge()->next()->vertex()->point().x() // second vertex
face->halfedge()->next()->next()->vertex()->point().x() // third vertex
etc...
This is based on a halfedge data structure.
If you are using Surface_mesh you should do:
sm.point( target(sm.halfedge(face), sm) ).x()
Sebastien.
On 5/23/19 6:12 PM, cisant wrote:
The title speaks for itself. I need help on how to get the XYZ coordinates of
vertex of each face of a Polyhedron.
I think on a logic working like:
face[0].vertex(1).x();
face[0].vertex(1).y();
face[0].vertex(1).z();
This should be the way to get the coordinates of second vertex on first
face;
--
Sent from: http://cgal-discuss.949826.n4.nabble.com/
- [cgal-discuss] Get coordinates from face vertex in a Polyhedron, cisant, 05/23/2019
- Re: [cgal-discuss] Get coordinates from face vertex in a Polyhedron, Sebastien Loriot (GeometryFactory), 05/24/2019
- Re: [cgal-discuss] Get coordinates from face vertex in a Polyhedron, cisant, 05/24/2019
- Re: [cgal-discuss] Get coordinates from face vertex in a Polyhedron, Sebastien Loriot (GeometryFactory), 05/24/2019
Archive powered by MHonArc 2.6.18.