File tree 1 file changed +6
-4
lines changed
experiments/2025-03-18/src/geometry
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -28,9 +28,9 @@ impl Sketch {
28
28
radius : impl Into < Scalar > ,
29
29
) -> Self {
30
30
let start = start. into ( ) ;
31
- let _ = radius. into ( ) ;
31
+ let radius = radius. into ( ) ;
32
32
33
- self . segments . push ( SketchSegment :: Arc { start } ) ;
33
+ self . segments . push ( SketchSegment :: Arc { start, radius } ) ;
34
34
35
35
self
36
36
}
@@ -48,7 +48,9 @@ impl Sketch {
48
48
. iter ( )
49
49
. map ( |( [ segment, next_segment] , is_internal) | {
50
50
let curve = match segment. segment {
51
- SketchSegment :: Arc { .. } => {
51
+ SketchSegment :: Arc { radius, .. } => {
52
+ let _ = radius;
53
+
52
54
// We are creating a line here, temporarily, while
53
55
// support for arcs is being implemented.
54
56
Handle :: new ( Curve :: line_from_vertices ( [
@@ -78,7 +80,7 @@ impl Sketch {
78
80
79
81
#[ derive( Clone , Copy ) ]
80
82
enum SketchSegment {
81
- Arc { start : Point < 2 > } ,
83
+ Arc { start : Point < 2 > , radius : Scalar } ,
82
84
Line { start : Point < 2 > } ,
83
85
}
84
86
You can’t perform that action at this time.
0 commit comments