Skip to content

Commit 7b37a89

Browse files
authored
Fix range issue in weights (#8888)
## Summary of Changes Outward construction does an inward construction for each hole, but the hole weights start at [1] in the weight range, not [0]. ## Release Management * Affected package(s): `Straight_skeleton_extrusion_2` * Issue(s) solved (if any): - * Feature/Small Feature (if any): - * License and copyright ownership: no change
2 parents 7a07844 + 3cc3229 commit 7b37a89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Straight_skeleton_extrusion_2/include/CGAL/extrude_skeleton.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,7 @@ class Extrusion_builder
812812
CGAL_SS_i::vertices_begin(hole),
813813
CGAL_SS_i::vertices_end(hole),
814814
std::begin(no_holes), std::end(no_holes),
815-
std::begin(speeds[hole_id]), std::end(speeds[hole_id]),
815+
std::begin(speeds[1 + hole_id]), std::end(speeds[1 + hole_id]),
816816
std::begin(no_speeds), std::end(no_speeds),
817817
m_gt);
818818

0 commit comments

Comments
 (0)