mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-08 11:58:27 +00:00
Check precondition
This commit is contained in:
parent
214e2e18fa
commit
23cf4d5993
@ -36,6 +36,13 @@ impl ConnectExt for Handle<Face> {
|
||||
.half_edges_with_end_vertex()
|
||||
.zip(other.half_edges_with_end_vertex())
|
||||
.map(|((q, r), (t, s))| {
|
||||
if q.is_internal != t.is_internal {
|
||||
panic!(
|
||||
"Trying to connect an internal half-edge of one face \
|
||||
to an external half-edge of another"
|
||||
);
|
||||
}
|
||||
|
||||
let surface = Plane::from_points(
|
||||
[&q.start, r, s].map(|vertex| vertex.point),
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user