Table of Contents Previous Chapter Summary Chapter Viewpoint Slideshow Next Chapter Summary X3D Resources

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


Color Per Vertex Examples

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

Online at http://X3dGraphics.com/examples/X3dForWebAuthors/Chapter06-GeometryPointsLinesPolygons

Validate XHTML 1.1

Master source code archive is under subversion control at
http://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter06-GeometryPointsLinesPolygons

Table of Contents Previous Chapter Summary Chapter Viewpoint Slideshow Next Chapter Summary X3D Resources

Also available: current and archived nightly builds and distributions of these examples, all published under an Open-Source License.

The X3D Resources: Examples page and Savage Developers Guide provide more information about the production of this archive.