Subject: CGAL users discussion list
List archive
Re: [cgal-discuss] Store a polygon into a half edge data structure using CGAL Polyhedron_3 class
Chronological Thread
- From: "Sebastien Loriot (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] Store a polygon into a half edge data structure using CGAL Polyhedron_3 class
- Date: Wed, 12 Apr 2017 10:59:16 +0200
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:wlqYFxx9o76BycTXCy+O+j09IxM/srCxBDY+r6Qd2+4TIJqq85mqBkHD//Il1AaPBtSHraocw8Pt8InYEVQa5piAtH1QOLdtbDQizfssogo7HcSeAlf6JvO5JwYzHcBFSUM3tyrjaRsdF8nxfUDdrWOv5jAOBBr/KRB1JuPoEYLOksi7ze6/9pncbglSmDaxfa55IQmrownWqsQYm5ZpJLwryhvOrHtIeuBWyn1tKFmOgRvy5dq+8YB6/ShItP0v68BPUaPhf6QlVrNYFygpM3o05MLwqxbOSxaE62YGXWUXlhpIBBXF7A3/U5zsvCb2qvZx1S+HNsDwULs6Wymt771zRRH1likHOT438GbUhMJ+gq1UrxCuqABwzYPPfIGYNuBzcr/Bcd4URWdMWNtaWSxbAoO7aosCF+QNM/tGoIbmvVQOtge+BQiyC+Pp1zRGgHj23bc70+QmDQHNwQgsEdMQv3TTqdX6KrsSUfq1zafI1zrMc+9W2TDn6InIdxwtr+yHULVrccrVzkkvDQLFjlKMqYD/OjOV0v8As2ee7+V6VOKvj3QrpB12ojiq38ohjJTCiIwSylDB7yp5wYA1KMW+SEFhetGrC59QuD+AO4RqRcMiRmdlszs5xL0eoZO2ficHxI46yxLBa/GLaYuF7gz5WOuQIDp0nHBodbGlixqs/kWty/fwWtSw3VtEtCZIkNnBu3YQ3BLJ8MeHUOFy/kK51DaPyQ/T7uZELFgxlaXBKp4hxqc8l5QWsUjfByP2lkT7ga6MekUr/eio7OvnYrH4qZOGK4B0jQT+Prwvmsy5H+s4LhADUmqU9OimybHv4030TK9Jg/EoiKXUsZHXKdwepqGjAg9V1ogj6wy4DzejyNkYhn0HLFVfeBKGiIjpJ0vCIPX8DfqkjFSslS1kx/HCPrH7HprNKX3DnK/7fblh805c1BYzzddH6p1IBbEOOvbzVlbsu9zZFR82LxG0w/38CNhmzYMfWWePAreDP6/IsF+I4PgvI+iWa4MPtjb9Matt2/m7hnAwnRoRfLKiwIAMQHG+BPVvZUuDMlT2hdJUW1wHtAMlUO3njhWmViRSYGr6H40x4TQ2FJi3I47IWoe3kf3LlHOgGppMZ2daTFWIOXjtfoSAHfwLbXTBcYdajjUYWO35GMca3ha0uVqixg==
- Organization: GeometryFactory
I don't understand what's not working. Could you elaborate what you want to do and what you're missing?
Thanks,
Sebastien.
On 04/06/2017 02:45 AM, hossan.nazmul wrote:
Hello Sebastien,
Thanks a lot for your reply. I played a little and now is able to store my
points into the CGAL::Surface_mesh<Point_3>. I have Linear Rings which are
the faces of the Polyhedron/Surface mesh (I presume). If I use
CGAL::Surface_mesh the I have two possibility to insert those points to
faces. e.g.
vertex_descriptor u = mesh.add_vertex(Kernel::Point_3(0, 0, 0));
vertex_descriptor v = mesh.add_vertex(Kernel::Point_3(1, 0, 0));
vertex_descriptor w = mesh.add_vertex(Kernel::Point_3(1, 1, 0));
vertex_descriptor x = mesh.add_vertex(Kernel::Point_3(0, 1, 0));
vertex_descriptor z = mesh.add_vertex(Kernel::Point_3(0.5, 0.5, 0));
face_descriptor face2 =mesh.add_face(v, w, z);
face_descriptor face2 =mesh.add_face(x, z, w);
face_descriptor face3 =mesh.add_face(x, u, z);
//or (I use this like following)
vertex_range range=mesh.vertices();
face_descriptor face=mesh.add_face(range);
This operation adds all of the vertices into one face which is not the case.
I would like to add each linear ring into one face (or polygon). I have 7
Linear rings and I like to insert them into 7 faces. (see the attached .gml
file). test_data_set_1.gml
<http://cgal-discuss.949826.n4.nabble.com/file/n4662635/test_data_set_1.gml>
how can I do it with Surface_Mesh/Polyhedron? Thanks in advance.
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Store-a-polygon-into-a-half-edge-data-structure-using-CGAL-Polyhedron-3-class-tp4662587p4662635.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- Re: [cgal-discuss] Store a polygon into a half edge data structure using CGAL Polyhedron_3 class, hossan.nazmul, 04/06/2017
- Re: [cgal-discuss] Store a polygon into a half edge data structure using CGAL Polyhedron_3 class, Sebastien Loriot (GeometryFactory), 04/12/2017
Archive powered by MHonArc 2.6.18.