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

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:

 
  17 X3D Models       X3D Model Descriptions
default_extrusion default extrusion This test attempts to draw an Extrusion using mostly default values. The test should generate a box of size 1.
points2500 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 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 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 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 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_creaseAngle 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 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 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 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 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 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 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 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 test texture This test attempts to map the VTS logo to an extruded circle.
test_XYZextrusion 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 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.

Online at https://www.web3d.org/x3d/content/examples/ConformanceNist/Geometry/Extrusion

Validate XHTML 1.1

Master source-code model archive is under subversion control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/ConformanceNist/Geometry/Extrusion

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

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