This chapter illustrates design patterns and best practices for authoring different geometries through a collection of interesting 3D shapes.

This X3D4AM Geometric Shapes examples archive is online.

The X3D Java Scene Access Interface (x3djsail) package provides concrete classes for each X3D node and statement.

• Classes
Class
Description
AxisLinesRGB shows 3 red-green-blue (RBB) perpendicular lines suitable as X-Y-Z axes.
CapsuleComparison shows three capsules, using polygons/lines/points rendering, each a hollow cylinder with hemispherical end caps.
Capsule has top and bottom hemispheres with connected sides, with adjustable parameters in the contained Script fields.
A catenary is the curve that an idealized hanging chain or cable assumes under its own weight when supported only at its ends.
Cube-shaped test model with faces on each side individually labeled.
Construct a Cylinder using IndexedFaceSet.
Dodecahedron is a 12-sided polyhedron with 30 edges, 20 vertices and 12 pentagonal faces.
Scene incorporating extrusion edge cases.
Extrusion examples for testing and debugging.
Hemisphere is a half sphere.
Icosahedron is a polyhedron with 12 vertices and, 20 faces, where a regular icosahedron is a Platonic solid.
Icosahedron is a polyhedron with twenty faces, subdivided to level 1, where all 42 vertices and 80 faces produce regular (equilateral) triangles.
Icosahedron is a polyhedron with twenty faces, subdivided to level 2, where all 162 vertices and 320 faces produce regular (equilateral) triangles.
Icosahedron is a polyhedron with twenty faces, subdivided to level 3, where all 642 vertices and 1280 faces produce regular (equilateral) triangles.
Icosahedron is a polyhedron with twenty faces, subdivided to level 4, where all 2562 vertices and 3366 faces produce regular (equilateral) triangles.
Icosahedron is a polyhedron with twenty faces, subdivided to level 5, where all 10242 vertices and 20480 faces produce regular (equilateral) triangles.
Mobius (or Mobius) is a surface with only one side and only one boundary component.
Octahedron is an 8-sided polyhedron with 6 vertices, 8 triangular faces and 12 edges.
Olympic Rings built for authoring course MV3204 using regulation colors, each approximately 5m radius.
Olympic Rings built using Blender for comparison.
Example use of external prototype declaration for Parallelepiped, which is a 3D figure formed by six parallelograms.
Reusable prototype for creating a Parallelepiped, which is a 3D figure formed by six parallelograms; also sometimes referred to as a rhomboid.
RoundedRectangle2D shows and IndexedFaceSet shape for a flat RoundedRectangle.
RoundedRectangleComparison shows three RoundedRectangle shapes using polygons/lines/points rendering.
Illustrates how to build rounded rectangle using only primitive nodes.
Semitransparent Sphere with circumference circles on x-y-z planes to facilitate user rotation of an object, suitable for use as rotation widget.
Build one or more stair steps, in a straight line.
A watertight (solid) Utah Teapot Model converted from obj format.
Four watertight (solid) Utah Teapot Models converted from obj format.
Tetrahedron is an 8-sided pyramidal polyhedron with 4 vertices, 4 triangular faces and 6 edges.
Simple Triangle with black lines, illustrating default line rendering.
Simple Triangle with labeled points, where labels always face the user and stay in place with the triangle.