View source
class PlaneGeometry
package away3d.primitives
extends PrimitiveBase › Geometry › NamedAssetBase
Available on all platforms
A Plane primitive mesh.
Constructor
new(width:Float = 100, height:Float = 100, segmentsW:Int = 1, segmentsH:Int = 1, yUp:Bool = true, doubleSided:Bool = false)
Creates a new Plane object.
Parameters:
width | The width of the plane. |
|---|---|
height | The height of the plane. |
segmentsW | The number of segments that make up the plane along the X-axis. |
segmentsH | The number of segments that make up the plane along the Y or Z-axis. |
yUp | Defines whether the normal vector of the plane should point along the Y-axis (true) or Z-axis (false). |
doubleSided | Defines whether the plane will be visible from both sides, with correct vertex normals. |