Struct opengex::structure::GeometryObject [] [src]

pub struct GeometryObject {
    pub visible: bool,
    pub casts_shadows: bool,
    pub motion_blur: bool,
    pub meshes: VecMap<Mesh>,
    pub morphs: VecMap<Morph>,
}

The GeometryObject structure contains data for a geometry object. Multiple GeometryNode structures may reference a single GeometryObject. This allows a scene to contain multiple instances of the same geometry with different transforms and materials.

The colors and textures properties are for application-specfic use.

Fields

Whether this geometry is visible. Can be overriden by any GeometryNode structure referencing this geometry.

Whether this geometry casts shadows. Can be overriden by any GeometryNode structure referencing this geometry.

Whether this geometry is rendered with motion blur. Can be overriden by any GeometryNode structure referencing this geometry.

A mesh for every level of detail. The map is indexed by the level of detail.

May contain a Morph structure for each morph target for which vertex data exists inside the Mesh structures in meshes. The key of the HashMap is their target index.