Struct three::Geometry [] [src]

pub struct Geometry {
    pub base_shape: GeometryShape,
    pub shapes: HashMap<String, GeometryShape>,
    pub faces: Vec<[u16; 3]>,
}

A collection of vertices, their normals, and faces that defines the shape of a polyhedral object.

Fields

The original shape of geometry.

A map containing blend shapes and their names.

Faces.

Methods

impl Geometry
[src]

Create new Geometry without any data in it.

Create Geometry from vector of vertices.

Create new Plane with desired size.

Create new Box with desired size.

Create new Cylinder or Cone with desired top and bottom radius, height and number of segments.

Create new Sphere with desired radius and number of segments.

Trait Implementations

impl Clone for Geometry
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Geometry
[src]

Formats the value using the given formatter.