mirror of
https://github.com/hannobraun/Fornjot
synced 2025-02-02 21:35:56 +00:00
Inline redundant variable
This commit is contained in:
parent
0e6b4037a4
commit
051c47d09a
@ -22,20 +22,19 @@ pub fn model(
|
|||||||
let surface = services.objects.surfaces.xy_plane();
|
let surface = services.objects.surfaces.xy_plane();
|
||||||
let path = Vector::from([Scalar::ZERO, Scalar::ZERO, z]);
|
let path = Vector::from([Scalar::ZERO, Scalar::ZERO, z]);
|
||||||
|
|
||||||
let sketch = Sketch::empty().add_region(
|
Sketch::empty()
|
||||||
Region::polygon(
|
.add_region(
|
||||||
[
|
Region::polygon(
|
||||||
[-x / 2., -y / 2.],
|
[
|
||||||
[x / 2., -y / 2.],
|
[-x / 2., -y / 2.],
|
||||||
[x / 2., y / 2.],
|
[x / 2., -y / 2.],
|
||||||
[-x / 2., y / 2.],
|
[x / 2., y / 2.],
|
||||||
],
|
[-x / 2., y / 2.],
|
||||||
services,
|
],
|
||||||
|
services,
|
||||||
|
)
|
||||||
|
.insert(services),
|
||||||
)
|
)
|
||||||
.insert(services),
|
|
||||||
);
|
|
||||||
|
|
||||||
sketch
|
|
||||||
.sweep_sketch(surface, path, services)
|
.sweep_sketch(surface, path, services)
|
||||||
.insert(services)
|
.insert(services)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user