mirror of
https://github.com/hannobraun/Fornjot
synced 2025-11-06 23:20:04 +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,
|
v2.point_surface,
|
||||||
])
|
])
|
||||||
.expect("invalid triangle");
|
.expect("invalid triangle");
|
||||||
|
assert!(
|
||||||
|
triangle.is_valid(),
|
||||||
|
"Expecting triangles created by triangulation to be valid.",
|
||||||
|
);
|
||||||
|
|
||||||
let required_winding = match coord_handedness {
|
let required_winding = match coord_handedness {
|
||||||
Handedness::LeftHanded => Winding::Cw,
|
Handedness::LeftHanded => Winding::Cw,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user