mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-10 21:08:27 +00:00
Check precondition in Solid::connect_faces
This commit is contained in:
parent
3cacc25120
commit
b2c48533b7
@ -35,6 +35,12 @@ impl Solid {
|
|||||||
faces: &mut Store<Face>,
|
faces: &mut Store<Face>,
|
||||||
surfaces: &mut Store<Plane>,
|
surfaces: &mut Store<Plane>,
|
||||||
) -> Self {
|
) -> Self {
|
||||||
|
assert_eq!(
|
||||||
|
a.vertices().count(),
|
||||||
|
b.vertices().count(),
|
||||||
|
"Can only connect faces that have the same number of vertices.",
|
||||||
|
);
|
||||||
|
|
||||||
let side_faces = a
|
let side_faces = a
|
||||||
.half_edges()
|
.half_edges()
|
||||||
.zip(b.half_edges())
|
.zip(b.half_edges())
|
||||||
|
Loading…
Reference in New Issue
Block a user