Skeleton: slight changes in number of nodes and edges

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Skeleton: slight changes in number of nodes and edges

Robert Sage
Hi I am running the Triangulated Surface Mesh Skeleton example below, and I notice that I get slightly different number of nodes and edges in each execution. Is that expected? And if so is there a way to arrange for identical results over separate runs - e.g. for unit tests?
Thanks!
Robert
Reply | Threaded
Open this post in threaded view
|

Re: Skeleton: slight changes in number of nodes and edges

Sebastien Loriot (GeometryFactory)
Someone else already asked the question and I suspected the usage
of maps using address on simplices but did not find any after a
quick search.
It would need some more careful look at the details of the execution.

You can try to define CGAL_MCFSKEL_DEBUG and compare the output
on different runs, maybe you'll spot where things are not
deterministic.

Sebastien.

On 9/6/19 6:58 AM, Robert Sage wrote:
> Hi I am running the Triangulated Surface Mesh Skeleton example below,
> and I notice that I get slightly different number of nodes and edges in
> each execution. Is that expected? And if so is there a way to arrange
> for identical results over separate runs - e.g. for unit tests?
> https://doc.cgal.org/latest/Surface_mesh_skeletonization/Surface_mesh_skeletonization_2MCF_Skeleton_sm_example_8cpp-example.html
> Thanks!
> Robert

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss