Struct opengex::structure::GeometryNode
[−]
[src]
pub struct GeometryNode { pub name: Option<Name>, pub transformations: Vec<Transformation>, pub animations: Vec<Animation>, pub children: Vec<Nodes>, pub visibile: Option<bool>, pub casts_shadows: Option<bool>, pub motion_blur: Option<bool>, pub geometry: Arc<GeometryObject>, pub materials: VecMap<Arc<Material>>, pub morph_weights: Vec<MorphWeight>, }
A GeometryNode structure represents a single geometry node in a scene. "]
Fields
name: Option<Name>
The optional name for this node. This property is generic to all types of nodes.
transformations: Vec<Transformation>
Any local transformations to be applied to this node. This property is generic to all types of nodes.
animations: Vec<Animation>
Any animations for this node. This property is generic to all types of nodes.
children: Vec<Nodes>
Any sub-nodes of this node. This property is generic to all types of nodes.
visibile: Option<bool>
Whether this geometry is visible. Overrides the visibility of the referenced
GeometryObject
structure.
casts_shadows: Option<bool>
Whether this geometry casts shadows. If unset, this GeometryNode
inherits the
visibility of the referenced GeometryObject
structure.
motion_blur: Option<bool>
Whether the geomery is rendered with motion blur. If unset, this GeometryNode
inherits the visibility of the referenced GeometryObject
structure.
geometry: Arc<GeometryObject>
A reference to a GeometryObject
structure containing all of the required mesh data
and optional skinning data.
materials: VecMap<Arc<Material>>
A HashMap
with references to materials associated with this geometry. Each material's
index in the HashMap specifies to which part of a mesh the material is applied, by
matching it with the material
property of each IndexArray
structure in the mesh.
morph_weights: Vec<MorphWeight>
If the GeometryObject
referenced by this node contains vertex data for multiple morph
targets, then the node may contain one or more MorphWeight
structures that specify
the blending weight for each target. Each MorphWeight
structure may be the target of
a Track structure in the animation belonging to the node.