parry3d_f64/transformation/convex_hull3/
error.rs

1#[derive(thiserror::Error, Debug, PartialEq)]
2/// Errors generated by the convex-hull calculation.
3pub enum ConvexHullError {
4    /// Reached an impossible configuration in the convex-hull calculation,
5    /// likely because of a bug.
6    #[error("Internal error: {0}")]
7    InternalError(&'static str),
8    /// The convex hull calculation was unable to find a support point.
9    /// This generally happens if the input point set contains invalid points (with NaN coordinates)
10    /// or if they are almost coplanar.
11    #[error("Input points are either invalid (NaN) or are almost coplanar.")]
12    MissingSupportPoint,
13    /// The convex-hull calculation failed because less than 3 points were provided.
14    #[error("Less than 3 points were given to the convex-hull algorithm.")]
15    IncompleteInput,
16    /// Reached a piece of code we shouldn’t (internal error).
17    #[error("Internal error: unreachable code path")]
18    Unreachable,
19}