Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] question on splitting edges

Subject: CGAL users discussion list

List archive

[cgal-discuss] question on splitting edges


Chronological Thread 
  • From: "Bill Conan" <>
  • To:
  • Subject: [cgal-discuss] question on splitting edges
  • Date: Mon, 16 Jun 2008 03:49:29 +0800
  • 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=cvyvJlP7QrX756SqK4COgQ+o2CICunqH/l5PsttrrSus6wAKJD0s2pUWjVwDB1tVva /3W2GtIpaXw3JmoaQJE6fP3tqv8htPiFv6m4pAgfkRRr7mLy1ASK6djXjZdxl0nYsE17 kZjvieE6npCwTp40UGm+XqUvtl9ObrR/L0yqA=

hello guys,

i'm trying to split all the edges of a mesh into 2 sub-edges, the
pseudo code could be simple as this:

for each edge e in the edge list
{
split edge e into e1 and e2;
}

but i'm afraid if i simply do that, the code will loop forever, since
the newly generated edges e1 and e2 can be traveled also by the loop
and generate more edges, however i only need the original edges to be
splitted.

i don't know where the new edges e1 and e2 are inserted into the edge
list of the CGAL polyhedron data structure. are they all inserted to
the end of the list or somewhere else or just replace the position of
e?

and another question is

for(edgeiter=edge.begin();edgeiter<edge.end();++edgeiter)
{
split edgeiter;

// will edgeiter become null here?
}


thank you very much.



Archive powered by MHonArc 2.6.16.

Top of Page