Subject: CGAL users discussion list
List archive
- From: Andrea Romanoni <>
- To:
- Subject: [cgal-discuss] Midpoint subdivision without duplicate vertices
- Date: Wed, 23 Mar 2016 03:04:10 -0700 (PDT)
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Fail ; spf=None
- Ironport-phdr: 9a23:t+VrxB17Xp7gmrLOsmDT+DRfVm0co7zxezQtwd8ZsegQKfad9pjvdHbS+e9qxAeQG96Lu7Qd1aGP7OjJYi8p39WoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6kO74TNaIBjjLw09fr2zQd6CyZ3pnLnts7ToICx2xxOFKYtoKxu3qQiD/uI3uqBFbpgL9x3Sv3FTcP5Xz247bXianhL7+9vitMU7q3cYjck5/sthSe26JPxgDO8QMDNzOG884IjntALIUBCUznoaSGQf1BRSUCbf6xSvd5H9qCbz/tB63SCcOsv3BeQ9Xzi44q4tUhjtgSEAMT8R6GbTi8lxyqNH9kHy7ydjypLZNdjGfMF1ebnQKIhCHWc=
Hi,
a quite odd issue is bothering me from a long time.
I have a 3D Polyedron represented by a triangular mesh, and I need to
subdivide a subset of the facets, by simply one-to-four subdivision. I need
to split only the subset that meets a certain condition.
Up to now I use the Subdivision_method_3::PTQ method implemented an
extension of CGAL::Loop_mask_3<Polyhedron_3> where
- the edge_node(Vertex_handle v, Point_3 &pt) function puts the point pt
in the middle of the edge if the facet or the neighboring facets meet the
condition, otherwise copies the position of v in pt;
- the vertex_node (Vertex_handle v, Point_3 &pt) function copies the
position of v in pt;
- the border_node (Halfedge_handle e, Point_3 &ept, Point_3 &vpt) acts as
the edge_node function
After this process duplicate vertices are generated and I manually collapse
the corresponding edges.
Is there a more efficient and elegant way?
Thanks,
Best Regards,
Andrea
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Midpoint-subdivision-without-duplicate-vertices-tp4661719.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- [cgal-discuss] Midpoint subdivision without duplicate vertices, Andrea Romanoni, 03/23/2016
- Re: [cgal-discuss] Midpoint subdivision without duplicate vertices, Sebastien Loriot (GeometryFactory), 03/30/2016
- Re: [cgal-discuss] Midpoint subdivision without duplicate vertices, Andrea Romanoni, 03/31/2016
- Re: [cgal-discuss] Midpoint subdivision without duplicate vertices, Sebastien Loriot (GeometryFactory), 03/30/2016
Archive powered by MHonArc 2.6.18.