| Package | de.nulldesign.nd3d.objects |
| Class | public class Mesh |
| Inheritance | Mesh Object3D |
| Subclasses | Box, Cube, Ground, KeyframeMesh, Line3D, Plane, Ribbon, SimpleCube, Sphere |
| Method | Defined by | ||
|---|---|---|---|
|
Mesh()
| Mesh | ||
|
Adds a new face to the mesh
| Mesh | ||
|
Clones the mesh
| Mesh | ||
![]() |
deg2rad(deg:Number):Number
[static]
| Object3D | |
|
flipNormals():void
Flips the normals of every face in the mesh
| Mesh | ||
![]() |
getAngles():String
| Object3D | |
![]() |
lookAtDirection():void
| Object3D | |
![]() |
lookAtTarget(target:Object3D):void
| Object3D | |
![]() |
moveToDirection(speed:Number):void
| Object3D | |
![]() |
rad2deg(rad:Number):Number
[static]
| Object3D | |
![]() |
rotateAround(origin:Object3D, angleX:Number = 0, angleY:Number = 0):void
| Object3D | |
![]() |
rotateVerticesX(angle:Number):void
Rotate vertices coordinates around X axis
| Object3D | |
![]() |
rotateVerticesY(angle:Number):void
Rotate vertices coordinates around Y axis
| Object3D | |
![]() |
rotateVerticesZ(angle:Number):void
Rotate vertices coordinates around Z axis
| Object3D | |
![]() |
scale(x:Number = 1, y:Number = 1, z:Number = 1):void
| Object3D | |
![]() |
toString():String
| Object3D | |
![]() |
translateVertices(tx:Number, ty:Number, tz:Number):void
Translate vertices coordinates
| Object3D | |
|
vertexInList(v:Vertex):Boolean
Checks if a mesh already contains a vertex
| Mesh | ||
|
weldVertices(tolerance:Number = 1):void
Welds vertices that are close together
| Mesh | ||
| Mesh | () | constructor |
public function Mesh()
| addFace | () | method |
public function addFace(v1:Vertex, v2:Vertex, v3:Vertex, material:Material = null, uvList:Array = null):voidAdds a new face to the mesh
Parametersv1:Vertex — vertex
|
|
v2:Vertex — vertex
|
|
v3:Vertex — vertex
|
|
material:Material (default = null) |
|
uvList:Array (default = null) — containing exactly three UV coordinates
|
| clone | () | method |
| flipNormals | () | method |
public function flipNormals():voidFlips the normals of every face in the mesh
| vertexInList | () | method |
public function vertexInList(v:Vertex):BooleanChecks if a mesh already contains a vertex
Parametersv:Vertex — to check
|
Boolean |
| weldVertices | () | method |
public function weldVertices(tolerance:Number = 1):voidWelds vertices that are close together
Parameterstolerance:Number (default = 1) |