mirror of
https://github.com/hannobraun/Fornjot
synced 2025-07-09 03:26:07 +00:00
Make sure triangulation returns valid triangles
This check is currently redundant with what the `Triangle` constructor already does. The constructor will soon get simplified though, and then the new check will be necessary.
This commit is contained in:
parent
d4b880d185
commit
0df27dee0d
@ -53,6 +53,10 @@ pub fn triangulate(
|
||||
v2.point_surface,
|
||||
])
|
||||
.expect("invalid triangle");
|
||||
assert!(
|
||||
triangle.is_valid(),
|
||||
"Expecting triangles created by triangulation to be valid.",
|
||||
);
|
||||
|
||||
let required_winding = match coord_handedness {
|
||||
Handedness::LeftHanded => Winding::Cw,
|
||||
|
Loading…
x
Reference in New Issue
Block a user