Struct ncollide_geometry::shape::TriMesh [] [src]

pub struct TriMesh<P: Point> { /* fields omitted */ }

Shape commonly known as a 2d line strip or a 3d triangle mesh.

Methods

impl<P: Point> TriMesh<P>
[src]

Builds a new mesh.

The base representation of this mesh.

The vertices of this mesh.

Bounding volumes of the subsimplices.

The indices of this mesh.

The texture coordinates of this mesh.

The normals of this mesh.

The acceleration structure used for efficient collision detection and ray casting.

impl<P: Point> TriMesh<P>
[src]

Gets the i-th mesh element.

Trait Implementations

impl<P: Point> Clone for TriMesh<P>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<P: Point, M: Isometry<P>> CompositeShape<P, M> for TriMesh<P>
[src]

Applies a function to each sub-shape of this concave shape.

Applies a transformation matrix and a function to each sub-shape of this concave shape. Read more

Gets the AABB of the shape identified by the index i.

Gets the acceleration structure of the concave shape.

impl<P: Point, M: Isometry<P>> Shape<P, M> for TriMesh<P>
[src]

The AABB of self.

The bounding sphere of self.

The RayCast implementation of self.

The PointQuery implementation of self.

The composite shape representation of self if applicable.

Whether self uses a composite shape-based representation.

The support mapping of self if applicable.

Whether self uses a supportmapping-based representation.

impl<P: Point, M: Isometry<P>> HasBoundingVolume<M, AABB<P>> for TriMesh<P>
[src]

The bounding volume of self transformed by m.

impl<P: Point, M: Isometry<P>> HasBoundingVolume<M, BoundingSphere<P>> for TriMesh<P>
[src]

The bounding volume of self transformed by m.

impl<P: Point, M: Isometry<P>> RayCast<P, M> for TriMesh<P>
[src]

Computes the time of impact between this transform shape and a ray.

Computes the time of impact, and normal between this transformed shape and a ray.

Computes time of impact, normal, and texture coordinates (uv) between this transformed shape and a ray. Read more

Tests whether a ray intersects this transformed shape.

impl<P: Point, M: Isometry<P>> PointQuery<P, M> for TriMesh<P>
[src]

Projects a point on self transformed by m.

Computes the minimal distance between a point and self transformed by m.

Tests if the given point is inside of self transformed by m.