pub struct ConvexHull {
pub points: Vec<Point3>,
pub bounding_planes: Vec<HalfPlane>,
pub face_indices_start: Vec<u32>,
pub face_vertex_indices: Vec<u32>,
pub center: Vec3,
pub volume: f32,
pub total_area: f32,
pub shift_center: Option<Vec3>,
pub debug: Option<ConvexHullDebugInfo>,
}Fields§
§points: Vec<Point3>§bounding_planes: Vec<HalfPlane>§face_indices_start: Vec<u32>§face_vertex_indices: Vec<u32>§center: Vec3§volume: f32§total_area: f32§shift_center: Option<Vec3>The offset vector applied to all points if align-to-center is enabled.
- If
None, align-to-center is disabled, and points remain at their original positions. - If
Some(Vec3), align-to-center is enabled, and points are shifted by the given vector, meaning the original positions are atpos + shift_center.
debug: Option<ConvexHullDebugInfo>Implementations§
Source§impl<'a> ConvexHull
impl<'a> ConvexHull
Source§impl ConvexHull
impl ConvexHull
pub fn new( points: &[Point3], config: &Config, ) -> Result<(ConvexHull, ConvexHullConstructState), ConvexHullConstructError>
Trait Implementations§
Source§impl From<ConvexHull> for ConvexHull
impl From<ConvexHull> for ConvexHull
Source§fn from(convex_hull: QuickConvexHull) -> Self
fn from(convex_hull: QuickConvexHull) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ConvexHull
impl RefUnwindSafe for ConvexHull
impl Send for ConvexHull
impl Sync for ConvexHull
impl Unpin for ConvexHull
impl UnwindSafe for ConvexHull
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more