Skip to Content.
Sympa Menu

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

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] question on splitting edges


Chronological Thread 
  • From: "Bart Janssens" <>
  • To:
  • Subject: Re: [cgal-discuss] question on splitting edges
  • Date: Mon, 16 Jun 2008 21:46:49 +0200
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=LLMIyy36tewBMR6m5R2GXUx6e/q43egC9rqSEgarcO91Pktr0TX+MWGLKf6UUDSmiO N6PapwoFCznCzxX/Z5ENk26O/kccf8yIEmGaxk+eCIfbDctmIEsFAuW3Sel08joYmkB+ w1z4PnVOeIkkOFm2+bvlc/iuVJ+w4sT+i93u0=

On 6/16/08, Bill Conan
<>
wrote:
> I'm wondering how people do this kind of operation normally?
> for example, when applying a subdivision on a geometry object,

Hi Bill,

K-3D meshes used to have a structure similar to the CGAL Halfedge
structure. To split edges, we traveled along the edges using the
next() method, making sure to store a handle to the old "next" edge
before moving on. Pseudo code would be like this:

For each facet
Get first edge first_edge
while edge != first_edge
old_clockwise = edge->next()
split edge
edge = old_clockwise

Dunno if this is OK in CGAL, though. Also, you might need to make sure
the opposite edges remain in sync.

Cheers,

--
Bart



Archive powered by MHonArc 2.6.16.

Top of Page