IShapeExtruder
Description
- Extended by
-
ShapeExtruder abstract
Base interface for classes that extrude 2D IShape objects to 3D IModelGeometrySimple objects.
The shape extruder takes a IShape and converts it to ShapeType.Graph (for the 3D lines) and ShapeType.Mesh (for the 3D triangles). Based on the configured geometry flags, lines and triangles are generated for the caps and the sides of the extrusion volume:
+------(4)------+ (1) Cap End / Triangles
/| /|
/ | (1) +-------+ | (2) Cap Start / Triangles
/ | /| | |
+-------+ | (3) | | (3) Sides / Triangles
| | | | | |
| +---|-|-------|-+ (4) Cap End / Lines
(6) / | | |/
| / (2) | +--(5)--+ (5) Cap Start / Lines
|/ |/
+-------+ (6) Sides / Lines
The CapEnd / CapStart and Sides flags affect the same 3D lines (see 4 and 5 in the figure above). If at least one flag is set, the 3D lines will be generated. The Toggle property can be used to further enable / disable specific 3D lines, which allows configuring all 64 possible geometry combinations.
Public / Methods
Defaults
Resets the shape extruder properties to their defaults.
After creation, a IShapeExtruder will always have default property values.
Public / Attributes
Texture
Specifies the IShapeExtruderTexture object to use for generating texture coordinates of the extruded model.
Defaults to null.