Shape {
SFNode appearance NULL # {Appearance, PROTO}
SFNode geometry NULL # {Geometry Primitive, PROTO}
SFBool castShadows TRUE # {TRUE, FALSE}
SFBool isPickable TRUE # {TRUE, FALSE}
}
The Shape node is used to create rendered objects in the world. Visible objects are constituted by a geometry and an appearance.
-
The
appearancefield contains an Appearance or PBRAppearance node that specifies the visual attributes (e.g., material and texture) to be applied to the geometry. -
The
geometryfield contains aGeometrynode: Box, Capsule, Cone, Cylinder, ElevationGrid, IndexedFaceSet, IndexedLineSet, Mesh, Plane, PointSet or Sphere. The specifiedGeometrynode is rendered with the specified appearance nodes applied. -
The
castShadowsfield allows the user to turn on (TRUE) or off (FALSE) shadows casted by this shape. However, shapes containing more than 65535 vertices will ignore this field and won't cast any shadow to save performance. -
The
isPickablefield defines if the object is detected (TRUE) or not (FALSE) when clicking on the 3D scene.
Note: Objects cast shadows only if the world contains at least one Light node with
castShadowsfield set to TRUE and if shadows are not disabled in the application preferences.