mirror of
https://github.com/hannobraun/Fornjot
synced 2025-03-12 16:12:12 +00:00
Refactor to prepare for follow-on change
This commit is contained in:
parent
07b3869698
commit
0e6b4037a4
@ -19,6 +19,9 @@ pub fn model(
|
||||
) -> Handle<Solid> {
|
||||
let [x, y, z] = size.into().components;
|
||||
|
||||
let surface = services.objects.surfaces.xy_plane();
|
||||
let path = Vector::from([Scalar::ZERO, Scalar::ZERO, z]);
|
||||
|
||||
let sketch = Sketch::empty().add_region(
|
||||
Region::polygon(
|
||||
[
|
||||
@ -32,8 +35,6 @@ pub fn model(
|
||||
.insert(services),
|
||||
);
|
||||
|
||||
let surface = services.objects.surfaces.xy_plane();
|
||||
let path = Vector::from([Scalar::ZERO, Scalar::ZERO, z]);
|
||||
sketch
|
||||
.sweep_sketch(surface, path, services)
|
||||
.insert(services)
|
||||
|
Loading…
Reference in New Issue
Block a user