Subject: CGAL users discussion list
List archive
- From: Yannick Morin-Rivest <>
- To:
- Subject: Re: [cgal-discuss] Mean curvature skeleton algo creates invalid edges
- Date: Tue, 21 Feb 2017 09:10:06 +0000
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:QKSWeRMcsIbqyZBAsKsl6mtUPXoX/o7sNwtQ0KIMzox0Iv7zrarrMEGX3/hxlliBBdydsKMZzbON+Pm7AiQp2tWoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6nK94iQPFRrhKAF7Ovr6GpLIj8Swyuu+54Dfbx9GiTe5Yb5+Ngi6oAveusULj4ZvJLs6xwfUrHdPZ+lY335jK0iJnxb76Mew/Zpj/DpVtvk86cNOUrj0crohQ7BAAzsoL2465MvwtRneVgSP/WcTUn8XkhVTHQfI6gzxU4rrvSv7sup93zSaPdHzQLspVzmu87tnRRn1gyoBKjU38nzYitZoga1UrhKupRxxzYDXbo+IKvRxYrjQcskGSWdbRMtdSzBND4G6YoASD+QBJ+FYr4zlqlQMtxS+Aw+sBOLzxT9Lm3T42qo60/4gEQHAxQAuA9MOsGrKo9XuKKcZTOe4zanSwjXFafNW2Cvy6IvTchw/vf2BRr1wcc/LxkkuEwPJlEmfqYvgPz6M0OkGrmaV7+1lVe21im4nrRl8ojmpxsc2i4nGnJgZyl7e9Sh/3Y07JsW4RVZlbdK4FJZcrSKXOotsTs88Xm1ltjw2x7ICtJO9YSME0o4oxwTFZPyCa4WI4gzsVOKWITpggXJqYrO/hxKr/Ui+ye3wStC40FhFoydBiNXMuXcN1xvc6siDVPRx5Fuu2TGK1wzL6+FEJ147lbbDJpI/3rI9koAfvEfDEyPshkn6kaGbel8r9+Ws8+jnZ6/ppp6YN496kAH+NaEul9S/AOsiNAgOWWmb9vi/1L3440H1XK5HjvIzkqbDsZDaId4XqbK+Aw9Qyooj8QqwDy+60NQEmnkKNE5KeB2dgIjtIl3BPfH4DeyjjFSxizdr3OvLPqbhA5XINnjMiq3tfbd7605GyQo818pT55xOCuJJHfToR0WktMDEFgRrdEuv0uP/AZN80JkfUCSBGOiCIabKuBiJ4OwoZOKDbYtQtDfmIOU+/K3SiioyllYZOKWoxpAKc2uQH/J8Ikzfb2C/rM0GFDI7tww4TefpwHiFSz9VIkyzQa8n+nlvGYugC4bIRZv32JSO2S66GttdYWUQWQPEKmvha4jRA6REUymVOMI0yjE=
As a temporary hacky workaround, I remove the edges that are not connecting 2 vertices using this snippet at the end of the init() function if it can help anyone.
for (int i = 0; i < edge_to_vertex.size(); i++)
{
if (edge_to_vertex[i].size() < 2)
{
bool found;
int ind;
boost::tie(found, ind) = ind_edge(vertex_to_edge[edge_to_vertex[i[0]], i);
if (!found)
{
continue;
}
remove_edge(edge_to_vertex[i][0], i, ind);
}
}
On 02/21/2017 08:24 AM, Yannick Morin-Rivest wrote:
> Hi guys,
>
> Just wanted to run it pass you before logging a bug.
>
> I am playing around with the Triangulated Surface Mesh Skeletonization
> package and trying it with different trisurfaces.
>
> In one scenario, I am getting errors when trying to resolve the skeleton
> from the contracted mesh in Curve_skeleton.h because some edges are only
> linked to 1 vertex ( In the init() function when populating the
> edge_to_vertex lut).
>
> Anyone encountered similar problem?
>
> Cheers
>
>
If you can share the input mesh and the parameters used to produce the
pb I can have a look.
Sebastien.
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss
- [cgal-discuss] Mean curvature skeleton algo creates invalid edges, Yannick Morin-Rivest, 02/21/2017
- Re: [cgal-discuss] Mean curvature skeleton algo creates invalid edges, Sebastien Loriot (GeometryFactory), 02/21/2017
- Re: [cgal-discuss] Mean curvature skeleton algo creates invalid edges, Yannick Morin-Rivest, 02/21/2017
- Re: [cgal-discuss] Mean curvature skeleton algo creates invalid edges, Sebastien Loriot (GeometryFactory), 02/21/2017
Archive powered by MHonArc 2.6.18.