Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Polygon skeleton

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Polygon skeleton


Chronological Thread 
  • From: "Antonino Mistretta" <>
  • To:
  • Subject: Re: [cgal-discuss] Polygon skeleton
  • Date: Mon, 7 Apr 2008 12:38:28 +0200
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=AbHsHXLLp3iWAHq2Ent0UB3v842NFnjxKGD0m+/dvGdLhEGIp2KN/O905HMgU4udUzo8vWjlLla+JihYi0ONG9dUaLa1YxbgD01EA19r1vb03DV3nSut3rNcaOqhmzBr6LzUgpsPe+dPrbQe1qEU+lBUsrE1qNXOXRTRUl2In00=

Dear CGAL user,

I've obtained skeleton vertex, in follow manner:

// forall vertex in straight_skeleton
for(Base::Vertex_iterator it = (*skeleton).vertices_begin (); it !=
(*skeleton).vertices_end (); ++ it)
{
//is a skeleton point??
if ( it->is_skeleton() )
{
outX.push_back(it->point().x());
outY.push_back(it->point().y());
}
}


I've another questions:
- How can I improve performance?
- How can I obtain fewer skeleton point?

In attachment you find a example polygon skeleton?

Thanks
AM

2008/4/4, Antonino Mistretta
<>:
> > A function called is_bisector() sounds and is a function
> > returning a boolean value, not a vertex.
>
>
> yes, but it returns true if it point to a vertex that is a skeleton
> vertex(manual):
>
> bool h.is_bisector () Returns true iff this is a bisector (or
> skeleton) halfedge (i.e. is not a contour halfedge).
>


--
AM

Attachment: tmp.JPG
Description: JPEG image




Archive powered by MHonArc 2.6.16.

Top of Page