Nodes Home Page  
Node Directory  
Node Hierarchy
Shout3D Nodes Reference
|
The Shape node generates renderable objects in a scene by applying appearance data to geometric data.
Link to Javadocs.
appearance
NodeArrayField appearance
USAGE = BASE_APPEARANCE_NODE_ARRAY DEFAULT = null
An array of nodes derived from BaseAppearance.
If the associated geometry is an IndexedFaceSet, there can be only one node in the array (generally an Appearance node) because IndexedFaceSet only supports a single appearance to be applied to the entire mesh.
If the associated geometry is a MultiMesh, there can be one or more nodes in the array (generally MultiAppearance nodes) because MultiMesh supports multiple appearances on a single mesh.
To accomodate VRML file format, in which the appearance
field accepts only a single node, the Shout3D player will load Shape nodes in which the appearance field is not written as an array. However, Shout3D will create an array in memory, and any Java code that accesses this field must treat it as a NodeArrayField. For example, Shout3D will load a node that reads:
Shape { appearance Appearance { material Material {} } ... }
But once loaded, this Appearance node is accessed as the first (and only) element in the array encapsulated in a FloatArrayField.
geometry
NodeField geometry
USAGE = GEOMETRY_NODE DEFAULT = null
A geometry node (i.e., an instantiable node derived from the abstract Geometry node).
The Shape Node has no methods other than those common to all Nodes.
Copyright© 1999-2001, Shout3D LLC.