| | |
- Node
-
- Shape
class Shape(Node) |
| |
Defines renderable objects by binding Appearance to a geometry node
The Shape node defines a renderable geometric object. Basically
it is a binding of a particular geometry node to a particular
appearance node. The Shape node coordinates the rendering of
the appearance and geometry such that the appearance is applied
only to the appropriate geometry.
Attributes of note within the Shape object:
geometry -- pointer to the geometry object, often an
arraygeometry object, although potentially a Nurb object,
or similar geometric primitive.
appearance -- pointer to the appearance object. This must
be an actual Appearance object or None to the default
appearance.
Reference:
http://www.vrml.org/technicalinfo/specifications/vrml97/part1/nodesRef.html#Shape |
| |
- Render(self, mode=1)
- perform run-time rendering
- __init__(self, geometry=None, appearance=None)
| |