pub fn handle_degenerate_case(
points: &ArrayView2<'_, f64>,
) -> Option<SpatialResult<ConvexHull>>Expand description
Handle degenerate cases for convex hull computation
This function detects and handles various degenerate cases that might cause issues with the standard algorithms.
§Arguments
points- Input points array
§Returns
- Option containing a ConvexHull if this is a special case, None otherwise
§Examples
use scirs2_spatial::convex_hull::algorithms::special_cases::handle_degenerate_case;
use scirs2_core::ndarray::array;
// Single point
let points = array![[0.0, 0.0]];
let result = handle_degenerate_case(&points.view());
assert!(result.is_some());