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: "hossan.nazmul" <>
- To:
- Subject: Re: [cgal-discuss] Store a polygon into a half edge data structure using CGAL Polyhedron_3 class
- Date: Wed, 5 Apr 2017 17:45:24 -0700 (PDT)
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=None ; spf=None
- Ironport-phdr: 9a23:TcFO4BWGKRtIVSvFUNW9YsqIvMHV8LGtZVwlr6E/grcLSJyIuqrYbBSDt8tkgFKBZ4jH8fUM07OQ6PG8HzRYqb+681k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i764jEdAAjwOhRoLerpBIHSk9631+ev8JHPfglEnjSwbLd9IRmssQndqtQdjJd/JKo21hbHuGZDdf5MxWNvK1KTnhL86dm18ZV+7SleuO8v+tBZX6nicKs2UbJXDDI9M2Ao/8LrrgXMTRGO5nQHTGoblAdDDhXf4xH7WpfxtTb6tvZ41SKHM8D6Uaw4VDK/5KptVRTmijoINyQh/W/ZisJ+kqFVrxCvpxJizIHbfI6bOeFifq7fZ94WWXZNUtpPWyFHH4iyb5EPD+0EPetAoYX9p1wOrQClBQa2AuPj0DlIiWX33K0/zuQhFQ/K1xEnEtIOt3TUt871O70UUe2u0KbH1zDDb+tL2Tfm8oTIbg0hreiXUr1ua8rRzUgvFwXfglqNt4PoJjWY3fkDvWic6upvT+Ovi2g/pgF3uDeg3dwjio3XiY4P1l/E8iB5zYAoLtO7UE52ecOoHZpOuy2AKYd7Qs0vT3t1tCs0xLAKo5G2cSYSxJg6xhPTdeaLf5aI7x/tTuqdPDl1iXx/dL+/hRu/91WrxPfmWcmuyllKqzJIktnSuXAJ0Bze8s2HS/V6/ke72jaDzQbT5ftfLk8vkarUNYQtzaI3lpoWqUjDHyn2l1vqjKKOa0kp+/ak5/75brjmqJKQLZJ4hw/wP6g0lcGyD/w0Mg0UUGia/eS82qfj/Ur8QLhSjv02lbLZsIvAKsQdvaO2HxVa0oM76xaiFDeqysgYnWQeIF1eZh2HlYzpO1DIIPziEPiwnUygkC13yPDeIr3hHpLNI2Dfn7fuZ7l971dQxxcyzdBE+51UF6oBIOnoV0/qtN3YCwc5PBauz+bmDtV9zIIeVniVDq+XKqOB+WOPs+kgKu3JaI4OsyvmMNAk4eTvhDk3gwwzZ66siNEXb2ujF/IgJUyLZGfoyJ9VEWARpQM4ZOfjjUWfSnhPejO4Urg45zd9BI/wXtSLfZyknLHUhHTzJZZRfG0TUl0=
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.