mirror of
https://github.com/hannobraun/Fornjot
synced 2025-10-02 14:08:11 +00:00
Rename argument
This commit is contained in:
parent
e43dcac26f
commit
f54bfe9bc4
@ -181,13 +181,13 @@ impl PartialHalfEdge {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Build a full [`HalfEdge`] from the partial half-edge
|
/// Build a full [`HalfEdge`] from the partial half-edge
|
||||||
pub fn build(self, stores: &Objects) -> HalfEdge {
|
pub fn build(self, objects: &Objects) -> HalfEdge {
|
||||||
let surface = self.surface;
|
let surface = self.surface;
|
||||||
let curve = self
|
let curve = self
|
||||||
.curve
|
.curve
|
||||||
.expect("Can't build `HalfEdge` without curve")
|
.expect("Can't build `HalfEdge` without curve")
|
||||||
.update_partial(|curve| curve.with_surface(surface))
|
.update_partial(|curve| curve.with_surface(surface))
|
||||||
.into_full(stores);
|
.into_full(objects);
|
||||||
let vertices = self
|
let vertices = self
|
||||||
.vertices
|
.vertices
|
||||||
.expect("Can't build `HalfEdge` without vertices")
|
.expect("Can't build `HalfEdge` without vertices")
|
||||||
@ -196,7 +196,7 @@ impl PartialHalfEdge {
|
|||||||
.update_partial(|vertex| {
|
.update_partial(|vertex| {
|
||||||
vertex.with_curve(Some(curve.clone()))
|
vertex.with_curve(Some(curve.clone()))
|
||||||
})
|
})
|
||||||
.into_full(stores)
|
.into_full(objects)
|
||||||
});
|
});
|
||||||
|
|
||||||
let global_form = self
|
let global_form = self
|
||||||
@ -206,7 +206,7 @@ impl PartialHalfEdge {
|
|||||||
.from_curve_and_vertices(&curve, &vertices)
|
.from_curve_and_vertices(&curve, &vertices)
|
||||||
.into()
|
.into()
|
||||||
})
|
})
|
||||||
.into_full(stores);
|
.into_full(objects);
|
||||||
|
|
||||||
HalfEdge::new(vertices, global_form)
|
HalfEdge::new(vertices, global_form)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user