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

The optional name for this node. This property is generic to all types of nodes.

Any local transformations to be applied to this node. This property is generic to all types of nodes.

Any animations for this node. This property is generic to all types of nodes.

Any sub-nodes of this node. This property is generic to all types of nodes.

Whether this geometry is visible. Overrides the visibility of the referenced GeometryObject structure.

Whether this geometry casts shadows. If unset, this GeometryNode inherits the visibility of the referenced GeometryObject structure.

Whether the geomery is rendered with motion blur. If unset, this GeometryNode inherits the visibility of the referenced GeometryObject structure.

A reference to a GeometryObject structure containing all of the required mesh data and optional skinning data.

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.

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.