mirror of
https://github.com/hannobraun/Fornjot
synced 2025-06-04 00:51:36 +00:00
Improve grouping of related code
This commit is contained in:
parent
c5cf4d8b6c
commit
550370fe66
@ -42,13 +42,15 @@ pub fn model(viewer: &Viewer) -> TriMesh {
|
|||||||
Handle::new(face)
|
Handle::new(face)
|
||||||
};
|
};
|
||||||
|
|
||||||
let solid = top.sweep(
|
let solid = {
|
||||||
FloatingCurve::new(Line {
|
let solid = top.sweep(
|
||||||
direction: Vector::from([0., 0., -2.]),
|
FloatingCurve::new(Line {
|
||||||
}),
|
direction: Vector::from([0., 0., -2.]),
|
||||||
[1.],
|
}),
|
||||||
);
|
[1.],
|
||||||
let solid = solid.to_tri_mesh(tolerance);
|
);
|
||||||
|
solid.to_tri_mesh(tolerance)
|
||||||
|
};
|
||||||
|
|
||||||
viewer.display_model(solid.clone());
|
viewer.display_model(solid.clone());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user