mirror of https://github.com/hannobraun/Fornjot
Refactor
This commit is contained in:
parent
c71d10893a
commit
aeb686c5cd
|
@ -68,7 +68,7 @@ impl CycleBuilder for PartialCycle {
|
||||||
.with_surface(Some(surface.clone()))
|
.with_surface(Some(surface.clone()))
|
||||||
.update_as_line_from_points([position_prev, position_next]);
|
.update_as_line_from_points([position_prev, position_next]);
|
||||||
|
|
||||||
let [from, to] = [(0., vertex_prev), (1., vertex_next)].map(
|
let vertices = [(0., vertex_prev), (1., vertex_next)].map(
|
||||||
|(position, surface_form)| {
|
|(position, surface_form)| {
|
||||||
Vertex::partial()
|
Vertex::partial()
|
||||||
.with_curve(curve.clone())
|
.with_curve(curve.clone())
|
||||||
|
@ -80,7 +80,7 @@ impl CycleBuilder for PartialCycle {
|
||||||
half_edges.push(
|
half_edges.push(
|
||||||
HalfEdge::partial()
|
HalfEdge::partial()
|
||||||
.with_curve(curve)
|
.with_curve(curve)
|
||||||
.with_vertices([from, to]),
|
.with_vertices(vertices),
|
||||||
);
|
);
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue