mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-27 21:21:37 +00:00
Refactor to prepare for follow-on change
This commit is contained in:
parent
21d7ddd781
commit
a99b99ec21
@ -43,6 +43,9 @@ pub fn model(
|
||||
inner_points.push([x / 2., y / 2.]);
|
||||
}
|
||||
|
||||
let surface = services.objects.surfaces.xy_plane();
|
||||
let path = Vector::from([0., 0., h]);
|
||||
|
||||
let sketch = Sketch::empty().add_region(
|
||||
Region::polygon(outer_points, services)
|
||||
.add_interiors([Cycle::polygon(inner_points, services)
|
||||
@ -51,8 +54,6 @@ pub fn model(
|
||||
.insert(services),
|
||||
);
|
||||
|
||||
let surface = services.objects.surfaces.xy_plane();
|
||||
let path = Vector::from([0., 0., h]);
|
||||
sketch
|
||||
.sweep_sketch(surface, path, services)
|
||||
.insert(services)
|
||||
|
Loading…
Reference in New Issue
Block a user