cgal icon indicating copy to clipboard operation
cgal copied to clipboard

example for create_interior_weighted_straight_skeleton_2

Open pcace opened this issue 1 year ago • 1 comments

Hi there,

i am just starting to look into cgal, because of the new feature Weighted Straight Skeletons wich is supposed to be included in the current git version.

is there any change someone could help me how i would convert the example file Create_straight_skeleton_from_polygon_with_holes_2.cpp to work with the weighted straight skeleton?

thank you so much!!

cheers!

pcace avatar Jul 19 '23 16:07 pcace

You can have a look at this simple test executable: https://github.com/CGAL/cgal/blob/master/Straight_skeleton_2/test/Straight_skeleton_2/test_sls_weighted_polygons_with_holes.cpp. It generates a random polygon with holes and with random weights, and computes its interior skeleton, the offset at time 0.1, and its complete extrusion.

I will add a simple example for weighted skeletons, it's definitely missing.

MaelRL avatar Jul 19 '23 21:07 MaelRL