Subject: CGAL users discussion list
List archive
[cgal-discuss] How should given edges be discarded when calculating a straight skeleton? (also posted on stackoverflow)
Chronological Thread
- From: Jean-Luc Dupouey <>
- To: <>
- Subject: [cgal-discuss] How should given edges be discarded when calculating a straight skeleton? (also posted on stackoverflow)
- Date: Sat, 19 Jul 2025 22:15:56 +0200
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-sdr: 687bfcfe_7f8kk0Zko+EU+KrhSfEVOA2cqMcAliRR2j9IJkr26rMyISd wFOlE4kEdfDQiAxSLf8MYbGhc8phNDtwesECwEQ==
I want to calculate the straight skeleton of a polygon, but I want to discard some edges from the skeleton calculation. As in the triangle example below, instead of using sides A, B and C for skeletonization (on the left), use only selected sides, A and B here (on the right).
I thought this would be possible using the weighted straight
skeleton function, by simply assigning a weight of 0 to the
edges to be discarded (C here). However, I see that the weights
in the CGAL::create_interior_weighted_straight_skeleton_2
function have to be strictly positive. Two questions:
-
Why is this constraint necessary? It seems to me that there is no particular theoretical reason to restrict the weights of edges to strictly positive values.
-
Secondly, is there any way to perform the calculation of the straight skeleton while discarding certain edges?
Thanks!
-- Jean-Luc Dupouey INRAE Silva Unit F-54280 Champenoux France
- [cgal-discuss] How should given edges be discarded when calculating a straight skeleton? (also posted on stackoverflow), Jean-Luc Dupouey, 07/19/2025
Archive powered by MHonArc 2.6.19+.