Struct mgf::Mesh [] [src]

pub struct Mesh {
    pub x: Vector3<f32>,
    pub verts: Vec<Point3<f32>>,
    pub faces: Vec<(usize, usize, usize)>,
    pub bvh: BVH<AABB, usize>,
}

A triangle mesh is a set of triangles that forms some sort of mesh. There are no requirements on the convexivity of the mesh.

Fields

Methods

impl Mesh
[src]

[src]

[src]

[src]

[src]

Trait Implementations

impl Clone for Mesh
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl AddAssign<Vector3<f32>> for Mesh
[src]

[src]

Performs the += operation.

impl SubAssign<Vector3<f32>> for Mesh
[src]

[src]

Performs the -= operation.

impl Shape for Mesh
[src]

[src]

Returns the center of mass of the geometry, assuming a regular density.

[src]

Returns the closest point on the shape to the given point.

[src]

Sets the center of the shape to p.

impl Volumetric for Mesh
[src]

Rotating meshes is not a fast operation.

[src]

Rotate the bound in place. This is useless for spheres.

[src]

Rotates the object around a point.

impl<RHS> Contacts<RHS> for Mesh where
    RHS: Contacts<Triangle> + Contacts<Rectangle> + BoundedBy<AABB>, 
[src]

[src]

Calls the closure for each contact found. Returns true if any contact was found. Read more

[src]

Returns the last contact found, if one exists.

Auto Trait Implementations

impl Send for Mesh

impl Sync for Mesh