Skip to content

Conversation

@ThierryBerger
Copy link
Contributor

@ThierryBerger ThierryBerger changed the title Add special case for triangle with same points ; new failing test for… Fix NaN originating from collinear triangles point projection. Jul 17, 2025
Comment on lines +223 to +227
// TODO: this can probably be optimized using data we already have ?
let length_sq_ab = ab.magnitude_squared();
let length_sq_ac = ac.magnitude_squared();
let length_sq_bc = bc.magnitude_squared();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm out of my depth to find the correct data to operate on, but as it's quite the edge case I'd advocate to merge as-is and consider improving it in another PR.

},
);
}
} else if DIM != 2 {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure why this isn't a cfg directive ?

@ThierryBerger ThierryBerger force-pushed the 310-fix_flat_triangles branch 2 times, most recently from bcaad6e to 11853b1 Compare July 17, 2025 12:41
@ThierryBerger ThierryBerger force-pushed the 310-fix_flat_triangles branch from 11853b1 to d956e74 Compare July 17, 2025 12:44
@ThierryBerger ThierryBerger requested a review from sebcrozet July 18, 2025 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant