Struct parry3d::shape::ConvexPolyhedron[][src]

pub struct ConvexPolyhedron { /* fields omitted */ }

A convex polyhedron without degenerate faces.

Implementations

impl ConvexPolyhedron[src]

pub fn aabb(&self, pos: &Isometry<Real>) -> AABB[src]

Computes the world-space AABB of this convex polyhedron, transformed by pos.

pub fn local_aabb(&self) -> AABB[src]

Computes the local-space AABB of this convex polyhedron.

impl ConvexPolyhedron[src]

pub fn bounding_sphere(&self, pos: &Isometry<Real>) -> BoundingSphere[src]

Computes the world-space bounding sphere of this convex polyhedron, transformed by pos.

pub fn local_bounding_sphere(&self) -> BoundingSphere[src]

Computes the local-space bounding sphere of this convex polyhedron.

impl ConvexPolyhedron[src]

pub fn from_convex_hull(points: &[Point<Real>]) -> Option<ConvexPolyhedron>[src]

Creates a new convex polyhedron from an arbitrary set of points.

This explicitly computes the convex hull of the given set of points. Use Returns None if the convex hull computation failed.

pub fn from_convex_mesh(
    points: Vec<Point<Real>>,
    indices: &[[u32; 3]]
) -> Option<ConvexPolyhedron>
[src]

Attempts to create a new solid assumed to be convex from the set of points and indices.

The given points and index information are assumed to describe a convex polyhedron. It it is not, weird results may be produced.

Return

Retruns None if he given solid is not manifold (contains t-junctions, not closed, etc.)

pub fn check_geometry(&self)[src]

Verify if this convex polyhedron is actually convex.

pub fn points(&self) -> &[Point<Real>][src]

The set of vertices of this convex polyhedron.

pub fn vertices(&self) -> &[Vertex][src]

The topology of the vertices of this convex polyhedron.

pub fn edges(&self) -> &[Edge][src]

The topology of the edges of this convex polyhedron.

pub fn faces(&self) -> &[Face][src]

The topology of the faces of this convex polyhedron.

pub fn vertices_adj_to_face(&self) -> &[u32][src]

The array containing the indices of the vertices adjacent to each face.

pub fn edges_adj_to_face(&self) -> &[u32][src]

The array containing the indices of the edges adjacent to each face.

pub fn faces_adj_to_vertex(&self) -> &[u32][src]

The array containing the indices of the faces adjacent to each vertex.

pub fn support_feature_id_toward(
    &self,
    local_dir: &Unit<Vector<Real>>
) -> FeatureId
[src]

Computes the ID of the features with a normal that maximize the dot-product with local_dir.

impl ConvexPolyhedron[src]

pub fn to_trimesh(&self) -> (Vec<Point3<Real>>, Vec<[u32; 3]>)[src]

Discretize the boundary of this convex polyhedron as a triangle-mesh.

Trait Implementations

impl Clone for ConvexPolyhedron[src]

impl Debug for ConvexPolyhedron[src]

impl PartialEq<ConvexPolyhedron> for ConvexPolyhedron[src]

impl PointQuery for ConvexPolyhedron[src]

impl PolygonalFeatureMap for ConvexPolyhedron[src]

impl RayCast for ConvexPolyhedron[src]

impl Shape for ConvexPolyhedron[src]

impl StructuralPartialEq for ConvexPolyhedron[src]

impl SupportMap for ConvexPolyhedron[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Any + Send + Sync
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.