Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] split an halfedge

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] split an halfedge


Chronological Thread 
  • 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/



Archive powered by MHonArc 2.6.16.

Top of Page