mirror of
https://github.com/hannobraun/Fornjot
synced 2025-02-26 00:55:50 +00:00
Remove redundant block
This commit is contained in:
parent
a0d6814ef8
commit
386c10524c
@ -48,10 +48,9 @@ impl ToShape for fj::Difference2d {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
|
||||||
// Can't panic, as we just verified that both shapes have one face.
|
// Can't panic, as we just verified that both shapes have one face.
|
||||||
let [face_a, face_b] = [&mut a, &mut b]
|
let [face_a, face_b] =
|
||||||
.map(|shape| shape.faces().all().next().unwrap());
|
[&mut a, &mut b].map(|shape| shape.faces().all().next().unwrap());
|
||||||
|
|
||||||
let (cycles_a, cycles_b, surface_a, surface_b) =
|
let (cycles_a, cycles_b, surface_a, surface_b) =
|
||||||
match ((*face_a).clone(), (*face_b).clone()) {
|
match ((*face_a).clone(), (*face_b).clone()) {
|
||||||
@ -66,8 +65,7 @@ impl ToShape for fj::Difference2d {
|
|||||||
},
|
},
|
||||||
) => (a, b, surface_a, surface_b),
|
) => (a, b, surface_a, surface_b),
|
||||||
_ => {
|
_ => {
|
||||||
// None of the 2D types still use triangle
|
// None of the 2D types still use triangle representation.
|
||||||
// representation.
|
|
||||||
unreachable!()
|
unreachable!()
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -82,7 +80,6 @@ impl ToShape for fj::Difference2d {
|
|||||||
cycles.extend(cycles_b);
|
cycles.extend(cycles_b);
|
||||||
|
|
||||||
shape.faces().add(Face::Face { cycles, surface });
|
shape.faces().add(Face::Face { cycles, surface });
|
||||||
};
|
|
||||||
|
|
||||||
shape
|
shape
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user