Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] edge loop when join_vertex()

Subject: CGAL users discussion list

List archive

[cgal-discuss] edge loop when join_vertex()


Chronological Thread 
  • From: "Shi Yan" <>
  • To: , ,
  • Subject: [cgal-discuss] edge loop when join_vertex()
  • Date: Fri, 29 Aug 2008 13:58:20 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=TBXmSU1tNd7cHgxJrbRN0VEa9GdHtCS2NICBheUoRMwpXZvvqzqRqKm/2MU3mb8qru cVJt5yYMsKEiWEzBTcpOrFNOYSEMygyB1sfPpaViipsQ5Dmi2usJ8a2ePN6MhQtOL6ib ecFJvfgrmEuFUigHi3FDD2d4UrTYDxWuYLLA0=

hello folks, Lutz and Fernando,

i need the edge collapsing feature in my program which is not
supported by the CGAL polyhedron_3 class. so i checked out the one
implemented by Fernando as part of the mesh simplification program.

that edge collapsing routine uses join_vertex() for collapsing. but it
seems that this routine doesn't check the 2-edge loop situation before
joining the vertices.

suppose we have two vertices, one is P and the other is T, and now on
the polyhedron, we have two edges PT and TP, that form a two edge
loop.

what will happen, if i want to collapsing PT, or join the vertex T
pointed by the half-edge PT?


i've made up such a model for testing, it seemed that the join_vertex
call can pass, but the result model cannot pass the
polyhedron.is_valid() check.



i don't think this is right, at lease, "no two edge loop" should be a
precondition of the join_vertex() routine, because collapsing a
halfedge on a two edge loop caused my program to crash.

a half-edge Euler Operator should return a valid half-edge structure
when finished, but it seems not the case here.


thank you.


  • [cgal-discuss] edge loop when join_vertex(), Shi Yan, 08/29/2008

Archive powered by MHonArc 2.6.16.

Top of Page