mirror of
https://github.com/hannobraun/Fornjot
synced 2025-11-17 20:40:06 +00:00
Inline redundant variable
This commit is contained in:
parent
a4db923c6e
commit
4047ba6b63
@ -43,15 +43,15 @@ pub trait BuildSurface {
|
|||||||
v: impl Into<Vector<3>>,
|
v: impl Into<Vector<3>>,
|
||||||
core: &mut Core,
|
core: &mut Core,
|
||||||
) -> Handle<Surface> {
|
) -> Handle<Surface> {
|
||||||
let geometry = SurfaceGeometry {
|
|
||||||
u: u.into(),
|
|
||||||
v: v.into(),
|
|
||||||
};
|
|
||||||
let surface = Surface::new().insert(core);
|
let surface = Surface::new().insert(core);
|
||||||
|
|
||||||
core.layers
|
core.layers.geometry.define_surface(
|
||||||
.geometry
|
surface.clone(),
|
||||||
.define_surface(surface.clone(), geometry);
|
SurfaceGeometry {
|
||||||
|
u: u.into(),
|
||||||
|
v: v.into(),
|
||||||
|
},
|
||||||
|
);
|
||||||
|
|
||||||
surface
|
surface
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user