Struct ncollide3d::shape::ConvexPolygonalFeature[][src]

pub struct ConvexPolygonalFeature<N: Real> {
    pub vertices: Vec<Point<N>>,
    pub edge_normals: Vec<Vector<N>>,
    pub normal: Option<Unit<Vector<N>>>,
    pub feature_id: FeatureId,
    pub vertices_id: Vec<FeatureId>,
    pub edges_id: Vec<FeatureId>,
}

Represents a convex polygonal approximation of a face of a solid.

It is never checked if the vertices actually form a convex polygon. If they do not, results of any geometric query may end up being invalid.

Fields

The vertices of this face.

The outward normal of the edges if it is a face.

The normal of this feature if it is an edge.

The shape-dependent identifier of this feature.

The shape-dependent indentifier of each vertex of this feature.

The shape-dependent indentifier of each edge of this feature.

Methods

impl<N: Real> ConvexPolygonalFeature<N>
[src]

Creates a new empty convex polygonal faces.

Removes all the vertices, normals, and feature IDs of this feature.

Transforms all the vertices and normals of this feature by the given isometry.

Adds a vertex to this face.

It is not checked whether pt breaks the convexity of the polyhedral face.

The number of vertices of this face.

The vertices of this convex polygonal face.

The number of edges of this convex polygonal face.

Retrieves the edge with the given feature id.

Adds a scaled edge normal to this face.

Adds an edge normal to this face.

Automatically recomputes the scaled edge normals (3D only).

Panics if the ambient space is not 3D.

Transforms all the vertices of this feature by the given isometry.

Sets the outward normal of this convex polygonal face.

Add the shape-dependent identifier of a edge of this feature (if it is a face).

Add the shape-dependent identifier of this feature.

Trait Implementations

impl<N: Clone + Real> Clone for ConvexPolygonalFeature<N>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<N: Debug + Real> Debug for ConvexPolygonalFeature<N>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<N> Send for ConvexPolygonalFeature<N> where
    N: Scalar

impl<N> Sync for ConvexPolygonalFeature<N> where
    N: Scalar