mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-10 12:58:28 +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>,
|
||||
surfaces: &mut Store<Plane>,
|
||||
) -> Self {
|
||||
assert_eq!(
|
||||
a.vertices().count(),
|
||||
b.vertices().count(),
|
||||
"Can only connect faces that have the same number of vertices.",
|
||||
);
|
||||
|
||||
let side_faces = a
|
||||
.half_edges()
|
||||
.zip(b.half_edges())
|
||||
|
Loading…
Reference in New Issue
Block a user