Table of Contents Previous Chapter Summary Chapter Viewpoint Slideshow Javadoc for translated java source Next Chapter Summary X3D Resources

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


Color Per Vertex Examples

Numerous X3D nodes are available for presenting points, lines, and a variety of polygonal meshes.

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 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.
ColorPerVertexExamples Color Per Vertex Examples Geometry Polygons Nodes: Color, Coordinate, ElevationGrid, Extrusion, IndexedFaceSet, IndexedLineSet, PointSet
ElevationGrid Elevation Grid Simple ElevationGrid example.
ElevationGridNonPlanarQuadrilaterals Elevation Grid Non Planar Quadrilaterals Show how a single nonplanar quadrilateral can be tesselated in 2 different ways.
ExtrusionPentagon Extrusion Pentagon Simple regular pentagon extruded vertically.
ExtrusionRoomWalls Extrusion Room Walls Wall definition for a room, defined as a cross section and extruded vertically.
IndexedFaceSet Indexed Face Set Positive-displacement cylinder pump house built using IndexedFaceSet nodes.
IndexedLineSet Indexed Line Set The way points and path of the animated shark Lucy traversing the tank, using IndexedLineSet node.
LineSet Line Set The way points and path of the animated shark Lucy traversing the tank, using LineSet node.
LineSetComparison 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.
PointSet Point Set Way points for the animated shark Lucy traversing the tank.
X3dBookWebsiteLogo X3D Book Website Logo Extrusion of X3D book used for x3dGraphics.com website logo

Online at http://X3dGraphics.com/examples/X3dForWebAuthors/Chapter06GeometryPointsLinesPolygons

Validate XHTML 1.1

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

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

Table of Contents Previous Chapter Summary Chapter Viewpoint Slideshow Javadoc for translated java source Next Chapter Summary X3D Resources