Subject: CGAL users discussion list
List archive
- From: "Sebastien Loriot (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] Split a mesh along a set of N consecutive halfedges.
- Date: Fri, 30 Nov 2018 09:16:06 +0100
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:KjpCaRZZuEXcrYGJ9BEGUhb/LSx+4OfEezUN459isYplN5qZr8q/bnLW6fgltlLVR4KTs6sC17KG9fi4EUU7or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRpOOv1BpTSj8Oq3Oyu5pHfeQpFiCa+bL9oMBm6sRjau9ULj4dlNqs/0AbCrGFSe+RRy2NoJFaTkAj568yt4pNt8Dletuw4+cJYXqr0Y6o3TbpDDDQ7KG81/9HktQPCTQSU+HQRVHgdnwdSDAjE6BH6WYrxsjf/u+Fg1iSWIdH6QLYpUjmk8qxlSgLniD0fOjAk7m/XhMx+gqFVrh2vqBNwwZLbbo6OOfpifK7QZ88WSXZPU8tTUSFKH4Oyb5EID+oEJetUoZTzqEUVohSkHgmsGOLvxSFOhnTr26M61P4hEQDB3Aw8AtkCtHXao8vyNKcXT++10LPIzDXDYfxMxTj99I/IcgohoP2JU757bM3cyVIrFwPClFWQqIvlPy+P2uQIt2iW9OVgVee1hG4mrwF9uCSgxsApioTQgI8e117K9SJ8wIkvJN24TlZ2Ydi+H5RLrC6aM5V5Ttk+TGFvvSY20qEJuZGhcygO0pgnwATfa/OBfoOV4RzjTP6cLSlkiH9hYr6yhBa//VK+xuHiS8W4yllHoyldntTOtX0BzQLf58eGR/dn40us3TiC2xrR5+xEJ00/iLDVJIQ7wrEqk5oeqUTDETHymEXxlKKWc18r+ums6+j+bLTmvIKQO5Z6igzxMakigMO/AeM/MggBW2iU5/6w26Hk/U38WLlKj/s2nbfFsJ3CO8gXuqq0DxVW34sj8RqzESmq3MkCkXQIL19JYBeHgJLoO1HKLvD4F/C/g1G0nTdww/DGOafhApTKLnjfirvheLJ95lVTyAo2199f5pZUBqsdL/L0X0/9rMbYAQMhMwyo3+bnD81w2Z8RWW2VBq+VKb7dsV6T5u0zPumMf5QVtS3mK/kl4v7ulWU2lUUcfamvx5sXaWq3Eu5oI0WDMjLQhYIKHm4O+wY/V+f3k0aqUDhJZn/0UbhvyCs8DdfsNorJT5uxgbGHlAO8BJxReigGJV2LFHr0bZSqUvwQbziDY4UpxicAUqKgTJNn0BWGuwrzyr4hJe3RrH5L/an/3cR4srWA3So58iZ5WpzEgjO9Clpsl2ZNfAcYmaV2oEhz0FCGiPEqjPlRFNgV7PRMAF5jaczsitdiAtW3YTrvO8+TQQ//ENqjCDA1CNk2xo1WOhsvK5CZlhnGmhGSLfoVmriMXsFm96vd2z3uPZ84xSqWkqYmiFYiT41EMmj03qM=
You can do it directly using low level operations.
The other solution is to compute the connected components of your mesh
bounded by your constrained edges and then you can remove or copy some
parts.
If you're using
typedef CGAL::Surface_mesh<Point> Surface_mesh;
Surface_mesh tm;
Surface_mesh::Property_map<Surface_mesh::Edge_index, bool> ecm =
tm.add_property_map<Surface_mesh::Edge_index, bool>("ecm", false).first;
Set ecm for the edges that you want to constraint and then
pass ecm in the call to connected_components, using
CGAL::parameters::edge_constrained_map(ecm).
See this example for the split
https://doc.cgal.org/latest/Polygon_mesh_processing/Polygon_mesh_processing_2face_filtered_graph_example_8cpp-example.html
Sebastien.
On 11/30/2018 01:03 AM, aseverino wrote:
Hello. I'm trying to split an edge using a list of halfedges that are
consecutive (forming a circular "spline" that "strangles" the mesh).
I've been trying a lot of CGAL::Euler operations, but have had no success
after many hours of trying.
How can I achieve that?
--
Sent from: http://cgal-discuss.949826.n4.nabble.com/
- [cgal-discuss] Split a mesh along a set of N consecutive halfedges., aseverino, 11/30/2018
- Re: [cgal-discuss] Split a mesh along a set of N consecutive halfedges., Sebastien Loriot (GeometryFactory), 11/30/2018
- Re: [cgal-discuss] Split a mesh along a set of N consecutive halfedges., aseverino, 11/30/2018
- Re: [cgal-discuss] Split a mesh along a set of N consecutive halfedges., aseverino, 11/30/2018
- Re: [cgal-discuss] Split a mesh along a set of N consecutive halfedges., aseverino, 11/30/2018
- Re: [cgal-discuss] Split a mesh along a set of N consecutive halfedges., Sebastien Loriot (GeometryFactory), 11/30/2018
Archive powered by MHonArc 2.6.18.