Struct ncollide_geometry::shape::BaseMesh [] [src]

pub struct BaseMesh<P: Point, I, E> { /* fields omitted */ }

A mesh generic wrt. the contained mesh elements characterized by vertices.

Methods

impl<P, I, E> BaseMesh<P, I, E> where
    P: Point,
    E: BaseMeshElement<I, P> + HasBoundingVolume<Id, AABB<P>>, 
[src]

Builds a new mesh.

impl<P, I, E> BaseMesh<P, I, E> where
    P: Point
[src]

The vertices of this mesh.

The number of primitives on thes 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, I, E> BaseMesh<P, I, E> where
    P: Point,
    E: BaseMeshElement<I, P>, 
[src]

Gets the i-th mesh element.

Trait Implementations

impl<P, I, E> Clone for BaseMesh<P, I, E> where
    P: Point
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<P, M, I, E> HasBoundingVolume<M, AABB<P>> for BaseMesh<P, I, E> where
    P: Point,
    M: Isometry<P>,
    E: BaseMeshElement<I, P>, 
[src]

The bounding volume of self transformed by m.

impl<P, M, I, E> HasBoundingVolume<M, BoundingSphere<P>> for BaseMesh<P, I, E> where
    P: Point,
    M: Isometry<P>,
    E: BaseMeshElement<I, P>, 
[src]

The bounding volume of self transformed by m.

impl<P, M, I, E> RayCast<P, M> for BaseMesh<P, I, E> where
    P: Point,
    M: Isometry<P>,
    I: Index<usize, Output = usize>,
    E: BaseMeshElement<I, P> + RayCast<P, Id>, 
[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, M, I, E> PointQuery<P, M> for BaseMesh<P, I, E> where
    P: Point,
    M: Isometry<P>,
    E: BaseMeshElement<I, P> + PointQuery<P, Id> + RichPointQuery<P, Id>, 
[src]

Projects a point on self transformed by m.

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

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

impl<P, M, I, E> RichPointQuery<P, M> for BaseMesh<P, I, E> where
    P: Point,
    M: Isometry<P>,
    E: BaseMeshElement<I, P> + RichPointQuery<P, Id>, 
[src]

Additional shape-specific projection information Read more

Projects a point on self transformed by m.