mirror of
https://github.com/hannobraun/Fornjot
synced 2025-01-23 00:26:08 +00:00
Refactor to prepare for follow-on change
This commit is contained in:
parent
bb9e8d4daa
commit
d3c7924f6b
@ -20,6 +20,9 @@ pub fn model(
|
||||
height: f64,
|
||||
services: &mut Services,
|
||||
) -> Handle<Solid> {
|
||||
let surface = services.objects.surfaces.xy_plane();
|
||||
let path = Vector::from([0., 0., height]);
|
||||
|
||||
let sketch = Sketch::empty().add_region(
|
||||
Region::circle(Point::origin(), outer, services)
|
||||
.add_interiors([Cycle::circle(Point::origin(), inner, services)
|
||||
@ -28,8 +31,6 @@ pub fn model(
|
||||
.insert(services),
|
||||
);
|
||||
|
||||
let surface = services.objects.surfaces.xy_plane();
|
||||
let path = Vector::from([0., 0., height]);
|
||||
sketch
|
||||
.sweep_sketch(surface, path, services)
|
||||
.insert(services)
|
||||
|
Loading…
Reference in New Issue
Block a user