## X3D Example Archives: Conformance Nist, Geometry, Extrusion

 Extrusion is a geometry node that sequentially stretches a 2D cross section along a 3D-spine path in the local coordinate system, creating an outer hull. Scaling and rotating the crossSection 2D outline at each control point can modify the outer hull of the Extrusion to produce a wide variety of interesting shapes. Warning: take care to avoid defining parameter combinations that create self-intersecting, impossible or inverted geometry. Wikipedia: Extrusion. X3D Tooltips of interest: Extrusion. X3D Specification sections of interest: 13 Geometry3D component, 13.2 Concepts and 13.3.5 Extrusion. X3D Examples Archives of related interest: VRML 2 Sourcebook:  Chapter 15 Extrusion X3D for Web Authors: Chapter 06 Geometry Points Lines Polygons
17 X3D Models       X3D Model Descriptions
default extrusion This test attempts to draw an Extrusion using mostly default values. The test should generate a box of size 1.
points 2500 This test attempts to draw an Extrusion using the minimum required number of points. The number of points in crossSection * number of points in spine <= 2500 (100 * 25 = 2500). The test should generate a "U" shaped like extrusion.
test begincap This test attempts to draw an Extrusion using mostly default values. The test should generate an extruded circle with radius 2 and no begin cap.
test beginendcap This test attempts to draw an Extrusion using mostly default values. The test should generate an extruded circle with radius 2 and no begin and ending caps.
test ccw This test attempts to draw an Extrusion using mostly default values. The test should generate an extruded circle with radius 2 and no begin cap.
test convex This test attempts to test the convex field of an Extrsusion. A convex Extrusion is drawn with the "convex" figure set to false. The Extrusion should be rendered as a creased cylinder-shaped object.
test crease Angle This test attempts to draw an open Extrusion (end and beginning crossSection values are not the same). The test should generate an extruded (extruded along the Y axis) circle of radius 1 with no beginning or end caps.
test endcap This test attempts to draw an Extrusion using mostly default values. The test should generate an extruded circle of radius 2 and no end cap.
test fullorient This test sets a different (and incremental) orientation value for each point in the spine field. The test should generate a twisted square extruded along the Y axis.
test multscaling This test draws an Extruded circle of radius one along the Y axis. A different scale factor is applied to each point in the spine field. The test should generate an extruded circle that looks like a champange cope.
test openextrusion This test attempts to draw an open Extrusion (end and beginning crossSection values are not the same). The test should generate an extruded (extruded along the Y axis) circle of radius 1 with no beginning or end caps.
test simpleorient This test sets the same orientation value for all the points in the spine field. The test should generate the default square extruded along a straight line and with an orientation of 1.1 radians along the X axis.
test simplescaling This test draws the same extruded circle twice. The one most to the right is scaled by a factor of two. No scaling is applied to the extruded circle most to the left.
test solid This test draws the same open Extrusion twice with different value for the solid field for each one. The extrusion at the top contains a solid field set to false while the one at the bottom sets the solid field to true. This should cause the bottom extrusion be drawn with no backface.
test texture This test attempts to map the VTS logo to an extruded circle.
test XYZextrusion This test attempts to draw an Extrusion using a spine path along the X, Y and Z directions. The test should generate an extruded circle of radius 1 extruded along different directions and with no end or beginning caps.
test YZextrusion This test attempts to draw an Extrusion with spine values along the Y and Z axis. The test should generate an "elbow" like figure with no end or beginning caps.

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