Subject: CGAL users discussion list
List archive
- From: "Laurent Rineau (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] split an halfedge
- Date: Sun, 4 Oct 2009 19:01:47 +0200
- Organization: GeometryFactory
Le dimanche 04 octobre 2009 13:03:45, Sterpa a écrit :
> I have to split an Halfedge at a given point, is there a constructor to
> create an halfedge?
I assume you are talking about polyhedra (you should really precise such sort
of things: remember the size of the CGAL libraries!)...
I do not know polyhedra very well, but I think splitting an edge is an Euler
operator.
If p is a polyhedron, and h a halfedge of it, I think the following does the
job:
Halfedge new_h = p.split_edge(h);
new_h->vertex()->point() = Point_3(x, y, z);
I have not verified. Just take that as hints for testing and browsing in the
manual.
--
Laurent Rineau, PhD
Release Manager of the CGAL Project
http://www.cgal.org/
R&D Engineer at GeometryFactory
http://www.geometryfactory.com/
- [cgal-discuss] split an halfedge, Sterpa, 10/04/2009
- Re: [cgal-discuss] split an halfedge, Laurent Rineau (GeometryFactory), 10/04/2009
Archive powered by MHonArc 2.6.16.