Struct mgf::ConvexMesh[][src]

pub struct ConvexMesh {
    pub x: Vector3<f32>,
    pub sum: Vector3<f32>,
    pub verts: Vec<Point3<f32>>,
}

A closed convex mesh. Represented by a point soup.

Fields

Methods

impl ConvexMesh
[src]

Trait Implementations

impl Clone for ConvexMesh
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl From<Vec<Point3<f32>>> for ConvexMesh
[src]

Performs the conversion.

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

Performs the += operation.

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

Performs the -= operation.

impl Shape for ConvexMesh
[src]

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

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

Sets the center of the shape to p.

impl Volumetric for ConvexMesh
[src]

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

Rotates the object around a point.

impl Convex for ConvexMesh
[src]

Returns the point on the object that produces the greatest dot product with the supplied axis. The axis is expected to be normalized. Read more

Auto Trait Implementations

impl Send for ConvexMesh

impl Sync for ConvexMesh