Rename argument

This commit is contained in:
Hanno Braun 2022-10-10 19:56:53 +02:00
parent e43dcac26f
commit f54bfe9bc4

View File

@ -181,13 +181,13 @@ impl PartialHalfEdge {
}
/// 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 curve = self
.curve
.expect("Can't build `HalfEdge` without curve")
.update_partial(|curve| curve.with_surface(surface))
.into_full(stores);
.into_full(objects);
let vertices = self
.vertices
.expect("Can't build `HalfEdge` without vertices")
@ -196,7 +196,7 @@ impl PartialHalfEdge {
.update_partial(|vertex| {
vertex.with_curve(Some(curve.clone()))
})
.into_full(stores)
.into_full(objects)
});
let global_form = self
@ -206,7 +206,7 @@ impl PartialHalfEdge {
.from_curve_and_vertices(&curve, &vertices)
.into()
})
.into_full(stores);
.into_full(objects);
HalfEdge::new(vertices, global_form)
}