Package | away3dlite.core.base |
Class | public class Face |
Property | Defined by | ||
---|---|---|---|
calculateScreenZ : Function
selected function for calculating the screen Z coordinate of the face.
| Face | ||
faceIndex : int
Index value of the face.
| Face | ||
i0 : int
Index value of the first vertex in the face.
| Face | ||
i1 : int
Index value of the second vertex in the face.
| Face | ||
i2 : int
Index value of the third vertex in the face.
| Face | ||
i3 : int
Index value of the fourth vertex in the face.
| Face | ||
material : Material
Material of the face.
| Face | ||
mesh : Mesh
Mesh object to which the face belongs.
| Face | ||
t0 : int
t index of the first mapping value.
| Face | ||
t1 : int
t index of the second mapping value.
| Face | ||
t2 : int
t index of the third mapping value.
| Face | ||
t3 : int
t index of the fourth mapping value.
| Face | ||
u0 : int
u index of the first mapping value.
| Face | ||
u1 : int
u index of the second mapping value.
| Face | ||
u2 : int
u index of the third mapping value.
| Face | ||
u3 : int
u index of the fourth mapping value.
| Face | ||
v0 : int
v index of the first mapping value.
| Face | ||
v1 : int
v index of the second mapping value.
| Face | ||
v2 : int
v index of the third mapping value.
| Face | ||
v3 : int
v index of the fourth mapping value.
| Face | ||
x0 : int
x index of the first screen vertex.
| Face | ||
x1 : int
x index of the second screen vertex.
| Face | ||
x2 : int
x index of the third screen vertex.
| Face | ||
x3 : int
x index of the fourth screen vertex.
| Face | ||
y0 : int
y index of the first screen vertex.
| Face | ||
y1 : int
y index of the second screen vertex.
| Face | ||
y2 : int
y index of the third screen vertex.
| Face | ||
y3 : int
y index of the fourth screen vertex.
| Face |
Method | Defined by | ||
---|---|---|---|
Creates a new
Face object. | Face | ||
calculateAverageZ():int
Returns the average screen Z coordinate of the face.
| Face | ||
calculateFurthestZ():int
Returns the furthest screen Z coordinate of the face.
| Face | ||
calculateNearestZ():int
Returns the nearest screen Z coordinate of the face.
| Face | ||
calculateUVT(x:Number, y:Number):Vector3D
Returns the uvt coordinate of the face at the given screen coordinate.
| Face |
calculateScreenZ | property |
public var calculateScreenZ:Function
selected function for calculating the screen Z coordinate of the face.
faceIndex | property |
public var faceIndex:int
Index value of the face.
i0 | property |
public var i0:int
Index value of the first vertex in the face.
i1 | property |
public var i1:int
Index value of the second vertex in the face.
i2 | property |
public var i2:int
Index value of the third vertex in the face.
i3 | property |
public var i3:int
Index value of the fourth vertex in the face.
material | property |
public var material:Material
Material of the face.
mesh | property |
public var mesh:Mesh
Mesh object to which the face belongs.
t0 | property |
public var t0:int
t index of the first mapping value.
t1 | property |
public var t1:int
t index of the second mapping value.
t2 | property |
public var t2:int
t index of the third mapping value.
t3 | property |
public var t3:int
t index of the fourth mapping value.
u0 | property |
public var u0:int
u index of the first mapping value.
u1 | property |
public var u1:int
u index of the second mapping value.
u2 | property |
public var u2:int
u index of the third mapping value.
u3 | property |
public var u3:int
u index of the fourth mapping value.
v0 | property |
public var v0:int
v index of the first mapping value.
v1 | property |
public var v1:int
v index of the second mapping value.
v2 | property |
public var v2:int
v index of the third mapping value.
v3 | property |
public var v3:int
v index of the fourth mapping value.
x0 | property |
public var x0:int
x index of the first screen vertex.
x1 | property |
public var x1:int
x index of the second screen vertex.
x2 | property |
public var x2:int
x index of the third screen vertex.
x3 | property |
public var x3:int
x index of the fourth screen vertex.
y0 | property |
public var y0:int
y index of the first screen vertex.
y1 | property |
public var y1:int
y index of the second screen vertex.
y2 | property |
public var y2:int
y index of the third screen vertex.
y3 | property |
public var y3:int
y index of the fourth screen vertex.
Face | () | constructor |
public function Face(mesh:Mesh, faceIndex:int, index:int, length:int)
Parameters
mesh:Mesh — The Mesh object to which the face belongs.
|
|
faceIndex:int — The index of the face.
|
|
index:int — The start index of the indices.
|
|
length:int — The number of indices.
|
calculateAverageZ | () | method |
public function calculateAverageZ():int
Returns the average screen Z coordinate of the face.
Returnsint |
calculateFurthestZ | () | method |
public function calculateFurthestZ():int
Returns the furthest screen Z coordinate of the face.
Returnsint |
calculateNearestZ | () | method |
public function calculateNearestZ():int
Returns the nearest screen Z coordinate of the face.
Returnsint |
calculateUVT | () | method |
public function calculateUVT(x:Number, y:Number):Vector3D
Returns the uvt coordinate of the face at the given screen coordinate.
Parametersx:Number — The x value of the screen coordinate.
|
|
y:Number — The y value of the screen coordinate.
|
Vector3D |