Prepare to support more types of segments

This commit is contained in:
Hanno Braun 2025-04-11 13:32:08 +02:00
parent 88df0cb625
commit fac08b794b

View File

@ -35,7 +35,9 @@ impl Sketch {
.iter()
.copied()
.map(|segment| {
let SketchSegment::Line { start: point_local } = segment;
let point_local = match segment {
SketchSegment::Line { start: point_local } => point_local,
};
let point_global =
surface.geometry.point_from_local(point_local);