Extrusion Element

HTML (DHTML)

Extrusion Element

Internet Development Index

Defines an extrusion for a shape.

The following attributes modify an extrusion.

AttributeDescription
AutoRotationCenterDetermines whether the center of rotation will be the geometric center of the extrusion.
BackDepthDefines the amount of backward extrusion.
BrightnessSpecifies the amount of brightness of a scene.
ColorDefines the color of the extrusion faces.
ColorModeDetermines the mode of extrusion color.
DiffusityDefines the amount of diffusion of reflected light from an extruded shape.
EdgeDefines the apparent bevel of the extrusion edges.
ExtDefines the default extrusion behavior for graphical editors.
FacetDefines the number of facets used to describe curved surfaces of an extrusion.
ForeDepthDefines the amount of forward extrusion.
LightFaceDetermines whether the front face of the extrusion will respond to changes in the lighting.
LightHarshDetermines whether the primary light source will be harsh.
LightHarsh2Determines whether the secondary light source will be harsh.
LightLevelDefines the intensity of the primary light source for the scene.
LightLevel2Defines the intensity of the secondary light source for the scene.
LightPositionSpecifies the position of the primary light in a scene.
LightPosition2Specifies the position of the secondary light in a scene.
LockRotationCenterDetermines whether the rotation of the extruded object is specified by the RotationAngle attribute.
MetalDetermines whether the surface of the extruded shape will resemble metal.
OnDetermines whether an extrusion will be displayed.
OrientationSpecifies the vector around which a shape will be rotated.
OrientationAngleDefines the angle that an extrusion rotates around the orientation.
PlaneSpecifies the plane that is at right angles to the extrusion.
RenderDefines the rendering mode of the extrusion.
RotationAngleSpecifies the rotation of the object about the x- and y-axes.
RotationCenterSpecifies the center of rotation for a shape.
ShininessDefines the concentration of reflected light of an extrusion surface.
SkewAmtDefines the amount of skew of an extrusion.
SkewAngleDefines the angle of skew of an extrusion.
SpecularityDefines the specularity of an extruded shape.
TypeDefines the way that the shape is extruded.
ViewpointDefines the viewpoint of the observer.
ViewpointOriginDefines the origin of the viewpoint within the bounding box of the shape.

Remarks

This element must be defined within a Shape element.

In addition, the On attribute must be set to True.

The following is the minimum code needed to produce an extrusion.

   <v:rect
   fillcolor="green"
   style="position:relative;top:1;left:1;width:50;height:50">
   <v:extrusion on="True"/>
   </v:rect>

Examples

Click here to view a simple shape with an extrusion.

Click here to view a more complex sample.