class LatheExtrude
package away3d.extrusions
extends Mesh › Entity › ObjectContainer3D › Object3D › NamedAssetBase
Available on all platforms
Class for generating meshes with axial symmetry such as donuts, pipes, vases etc.
Static variables
Constructor
new(?material:MaterialBase, ?profile:Vector<Vector3D>, axis:String = LatheExtrude.Y_AXIS, revolutions:Float = 1, subdivision:Int = 10, coverall:Bool = true, centerMesh:Bool = false, flip:Bool = false, thickness:Float = 0, preciseThickness:Bool = true, offsetRadius:Float = 0, ?materials:MultipleMaterials, ignoreSides:String = "", ?tweek:Dynamic, smoothSurface:Bool = true)
Class LatheExtrude generates circular meshes such as donuts, pipes, pyramids etc.. 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. |
|---|---|
profile | [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 rotate around: X_AXIS, Y_AXIS or Z_AXIS. Default is LatheExtrude.Y_AXIS. |
revolutions | [optional] Number. The LatheExtrude object can have less than one revolution, like 0.6 for a piechart or greater than 1 if a tweek object is passed. Minimum is 0.01. Default is 1. |
subdivision | [optional] uint. Howmany segments will compose the mesh in its rotational construction. Minimum is 3. Default is 10. |
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 true. |
flip | [optional] Boolean. If the faces must be reversed depending on Vector3D's orientation. Default is false. |
thickness | [optional] Number. If the shape must simulate a thickness. Default is 0. |
preciseThickness | [optional] Boolean. If the thickness must be repected along the entire volume profile. Default is true. |
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. |
offsetRadius | [optional] Number. An offset radius if the profile data is not to be updated but the radius expected to be different. Default is 0. |
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. |
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 "". |
tweek | [optional] Object. To build springs like shapes, rotation must be higher than 1. Properties of the tweek object are x,y,z, radius and rotation. Default is null. |
smoothSurface | [optional] An optional Boolean. Defines if the surface of the mesh must be smoothed or not. |