Box
Box
Overview
Box is a geometry node specifying a rectangular cuboid.
The Box node belongs to the Geometry3D component and requires at least level 1, its default container field is geometry. It is available since VRML 2.0 and from X3D version 3.0 or higher.
Hierarchy
1
2
3
+ X3DNode
+ X3DGeometryNode
+ Box
Fields
SFNode [in, out] metadata NULL [X3DMetadataObject]
Information about this node can be contained in a MetadataBoolean, MetadataDouble, MetadataFloat, MetadataInteger, MetadataString or MetadataSet node.
Hint
SFVec3f [ ] size 2 2 2 (0,∞)
size x y z in meters.
Hint
- For size animation, modify the scale of a parent/ancestor Transform node instead.
Warning
- Simple-geometry dimensions are initializeOnly and cannot be changed after initial creation, avoiding the need for potentially expensive tessellation at run time.
SFBool [ ] solid TRUE
Setting solid true means draw only one side of polygons (backface culling on), setting solid false means draw both sides of polygons (backface culling off).
Hints
- Mnemonic “this geometry is solid like a brick” (you don’t render the inside of a brick).
- If in doubt, use solid=’false’ for maximum visibility.
- AccessType relaxed to inputOutput in order to support animation and visualization.
Warnings
- Default value true can completely hide geometry if viewed from wrong side!
- solid false not supported in VRML97.
Advice
Hints
- Cuboid
- Parallelepiped
- Insert a Shape node before adding geometry or Appearance.
Example
See Also
This post is licensed under CC BY 4.0 by the author.