class LinearExtrude
package away3d.extrusions
extends Mesh › Entity › ObjectContainer3D › Object3D › NamedAssetBase
Available on all platforms
Static variables
Constructor
new(?material:MaterialBase, ?vectors:Vector<Vector3D>, axis:String = LinearExtrude.Y_AXIS, offset:Float = 10, subdivision:Int = 3, coverAll:Bool = false, thickness:Float = 0, thicknessSubdivision:Int = 3, ?materials:MultipleMaterials, centerMesh:Bool = false, closePath:Bool = false, ignoreSides:String = "", flip:Bool = false)
Class LinearExtrusion generates walls like meshes with or without thickness from a series of Vector3D's
Parameters:
material | [optional] MaterialBase. The LatheExtrude (Mesh) material. Optional in constructor, material must be set before LatheExtrude object is render. |
|---|---|
vectors | [optional] Vector.<Vector3D>. A series of Vector3D's representing the profile information to be repeated/rotated around a given axis. |
axis | [optional] String. The axis to elevate along: X_AXIS, Y_AXIS or Z_AXIS. Default is LinearExtrusion.Y_AXIS. |
offset | [optional] Number. The elevation offset along the defined axis. |
subdivision | [optional] uint. The subdivision of the geometry between 2 vector3D. Default is 32. |
coverAll | [optional] Boolean. The way the uv mapping is spreaded across the shape. True covers an entire side of the geometry while false covers per segments. Default is false. |
thickness | [optional] Number. If the shape must simulate a thickness. Default is 0. |
thicknessSubdivision | [optional] uint. If thickness is higher than 0. Defines the subdivision of the thickness (top, left, right, bottom). Default is 3; |
materials | [optional] MultipleMaterials. Allows multiple material support when thickness is set higher to 1. Default is null. properties as MaterialBase are: bottom, top, left, right, front and back. |
centerMesh | [optional] Boolean. If the geometry needs to be recentered in its own object space. If the position after generation is set to 0,0,0, the object would be centered in worldspace. Default is false. |
closePath | [optional] Boolean. Defines if the last entered vector needs to be linked with the first one to form a closed shape. Default is false. |
ignoreSides | [optional] String. To prevent the generation of sides if thickness is set higher than 0. To avoid the bottom ignoreSides = "bottom", avoiding both top and bottom: ignoreSides = "bottom, top". Strings options: bottom, top, left, right, front and back. Default is "". |
flip | [optional] Boolean. If the faces must be reversed depending on Vector3D's orientation. Default is false. |