pub trait ViewElement3D {
    // Required methods
    fn get_transform(&self) -> Transform3D;
    fn get_vertices(&self) -> &[Vec3D];
    fn get_faces(&self) -> &[Face];
}
Expand description

ViewElement3D is a trait that must be implemented by any 3D object to be rendered using a Viewport

Required Methods§

source

fn get_transform(&self) -> Transform3D

This should return the object’s transform

source

fn get_vertices(&self) -> &[Vec3D]

This should return all of the object’s vertices

source

fn get_faces(&self) -> &[Face]

This should return all of the object’s Faces

Implementors§