mirror of
https://github.com/hannobraun/Fornjot
synced 2025-10-23 00:08:32 +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>>,
|
||||
core: &mut Core,
|
||||
) -> Handle<Surface> {
|
||||
let geometry = SurfaceGeometry {
|
||||
u: u.into(),
|
||||
v: v.into(),
|
||||
};
|
||||
let surface = Surface::new().insert(core);
|
||||
|
||||
core.layers
|
||||
.geometry
|
||||
.define_surface(surface.clone(), geometry);
|
||||
core.layers.geometry.define_surface(
|
||||
surface.clone(),
|
||||
SurfaceGeometry {
|
||||
u: u.into(),
|
||||
v: v.into(),
|
||||
},
|
||||
);
|
||||
|
||||
surface
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user