Struct ncollide::shape::BaseMesh [] [src]

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

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

Methods

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

[src]

Builds a new mesh.

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

[src]

The vertices of this mesh.

[src]

The number of primitives on thes mesh.

[src]

Bounding volumes of the subsimplices.

[src]

The indices of this mesh.

[src]

The texture coordinates of this mesh.

[src]

The normals of this mesh.

[src]

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

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

[src]

Gets the i-th mesh element.

Trait Implementations

impl<P, M, I, E> RayCast<P, M> for BaseMesh<P, I, E> where
    E: BaseMeshElement<I, P> + RayCast<P, Id<Multiplicative>>,
    I: Index<usize, Output = usize>,
    M: Isometry<P>,
    P: Point
[src]

[src]

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

[src]

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

[src]

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

[src]

Tests whether a ray intersects this transformed shape.

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

[src]

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

[src]

The bounding volume of self transformed by m.

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

[src]

The bounding volume of self transformed by m.

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

[src]

Projects a point on self transformed by m.

[src]

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

[src]

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

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

Additional shape-specific projection information Read more

[src]

Projects a point on self transformed by m.