Geometry3D component
This component provides the most commonly used 3D objects.
IndexedFaceSet defines a 3D object as a set of polygons,
and is the most often method to render 3D data.
ElevationGrid allows to easily render a heightfield
(like a terrain). Extrusion allows
to render a 3D object by extruding a 2D shape along a 3D spine.
Primitives
Sphere, Box, Cone, Cylinder
provide the well-known simple 3D objects.
See also X3D specification of Geometry3D component.
Supported nodes:
IndexedFaceSet
Sphere,
Box,
Cone,
Cylinder
Including support for solid field (added in X3D),
so you can turn on or off back-face culling for them.
ElevationGrid
TODO: when colors are present and colorPerVertex
is different than normalPerVertex (from field or calculated
based on creaseAngle) then shading results may be incorrect.
Reasons for this — see comments about X3D [Indexed]TriangleFan/StripSet
above on this page.
TODO: creaseAngle is not fully handled:
we always generate all flat normals (if creaseAngle = 0) or
all smooth normals (if creaseAngle <> 0).
Extrusion
Works fully.
|