## X3D Example Archives: X3D for Web Authors, Chapter 06 - Geometry Points Lines Polygons

Many kinds of geometry can be created using PointSet, LineSet, IndexedLineSet, IndexedFaceSet, ElevationGrid and Extrusion nodes. Each is placed individually inside a Shape node.

Geometric properties are controlled by Color, ColorRGBA, Coordinate, CoordinateDouble, Normal, TextureCoordinate, TextureCoordinateGenerator and MultiTextureCoordinate nodes.

The supporting Chapter 6 slideset and course videos (NPS, YouTube) for X3D for Web Authors are available online via X3dGraphics.com.

Also available: X3D Scene Authoring Hints: Meshes.

12 X3D Scenes       Scene Descriptions
Color Vertex color applied to IndexedFaceSet built positive-displacement cylinder pump house. Note that this scene is not really static because the PositionInterpolators contain an initial offest of the piston and rocker arm.
Color Per Vertex Examples Geometry Polygons Nodes: Color, Coordinate, ElevationGrid, Extrusion, IndexedFaceSet, IndexedLineSet, PointSet
Elevation Grid Simple ElevationGrid example.
Elevation Grid Non Planar Quadrilaterals Show how a single nonplanar quadrilateral can be tesselated in 2 different ways.
Extrusion Pentagon Simple regular pentagon extruded vertically.
Extrusion Room Walls Wall definition for a room, defined as a cross section and extruded vertically.
Indexed Face Set Positive-displacement cylinder pump house built using IndexedFaceSet nodes.
Indexed Line Set The way points and path of the animated shark Lucy traversing the tank, using IndexedLineSet node.
Line Set The way points and path of the animated shark Lucy traversing the tank, using LineSet node.
Line Set Comparison A simple wireframe cube, comparing two functionally equivalent nodes: IndexedLineSet (per-vertex coloring) with LineSet (per-segment coloring). Keeping track of how each node "connects the dots" is simply a book-keeping problem.
Point Set Way points for the animated shark Lucy traversing the tank.
X3D Book Website Logo Extrusion of X3D book used for x3dGraphics.com website logo

Master source code archive is under subversion control at