Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Draw Skeleton.

Subject: CGAL users discussion list

List archive

[cgal-discuss] Draw Skeleton.


Chronological Thread 
  • From: Conti Manuele <>
  • To:
  • Subject: [cgal-discuss] Draw Skeleton.
  • Date: Mon, 02 Nov 2009 17:20:46 +0100

Hi,
In my application I'm using the skeleton/offset structures to draw the complete skeleton like straight_skeleton_2 demo.

I save the skeleton points this way:

template<class K>
void print_file_straight_skeleton(std::ofstream& file_out, CGAL::Straight_skeleton_2<K> const& ss)
{
typedef CGAL::Straight_skeleton_2<K> Ss ;
typedef typename Ss::Vertex_const_handle Vertex_const_handle ;
typedef typename Ss::Halfedge_const_handle Halfedge_const_handle ;
typedef typename Ss::Halfedge_const_iterator Halfedge_const_iterator ;

Halfedge_const_handle null_halfedge ;
Vertex_const_handle null_vertex ;
for ( Halfedge_const_iterator i = ss.halfedges_begin(); i != ss.halfedges_end(); i++, i++)
{ print_file_point(file_out, i->vertex()->point());
file_out << std::endl ;
}
}

What's the best way to draw skeleton?

Regards.





  • [cgal-discuss] Draw Skeleton., Conti Manuele, 11/02/2009

Archive powered by MHonArc 2.6.16.

Top of Page