A World Of Extrusion

Extrusion • Attributes

An extruded shape standing straight up on the "ground". The end spine points have been scaled inwards (a value of 1.0 is no scaling). The middle spine points have been scaled outwards. Without the scaling, this shape would be a standard rectangular block.

Extrusions can create a wide variety of shapes depending on the type of cross-section you make and the spine you provide for it. Twisting and scaling at each spine point adds even more flexibilty.

 

Rotate the vrignette to view the geometry.

<x3d>

<scene>

<worldInfo title="X3D Extrusion Example">
</worldInfo>

<navigationInfo headlight="true">
</navigationInfo>

<viewpoint position="0.0 5.0 12.0" orientation="1 0 0 -0.20" centerOfRotation="0.0 0.0 0.0">
</viewpoint>

<transform rotation="0 1 0 0.385">
<shape>
<appearance>
<material diffuseColor="0.90 0.15 0.90" specularColor="0.20 0.20 0.20" shininess="0.25">
</material>
</appearance>
<extrusion beginCap="true" endCap="true" convex="true" scale="0.0 0.0, 1.5 1.5, 1.5 1.5, 1.5 1.5, 1.5 1.5, 0.0 0.0" crossSection="0.0 1.0, 1.0 0.0, 0.0 -1.0, -1.0 0.0, 0.0 1.0" spine="0.0 0.0 0.0, 0.0 1.25 0.0, 0.0 2.5 0.0, 0.0 3.75 0.0, 0.0 5.0 0.0, 0.0 6.25 0.0" solid="false">
</extrusion>
</shape>
</transform>

<background skyColor="0.10 0.10 0.30" groundColor="0.10 0.30 0.10">
</background>

</scene>

</x3d>