IPolygon Polygon
new Polygon()public function updateTextureMatrix(s:Skin):VoidFIXME, the matrix is available only for front skin, the same thing shall be applied for back skins!
public function getVertices(Void):ArrayAllows you to get the vertex of the face. Very usefull when you want to make some calculation on a face after it has been clicked.
Void |
Array The array of vertex.
public function setSkin(s:Skin):VoidNFace3D allows all the skins available in Sandy, but you must be warned that if you use a TextureSkin (or a derivate one) the distortion will not be correct! The only solution to be able to map an object with a bitmap correctly is to use TriFace3D.
s | Skin object. The skin to apply to the face. |
public function getZAverage(Void):NumberReturn the depth average of the face.
Useful for z-sorting.
A Number as depth average.
public function getMinDepth(Void):NumberReturns the min depth of its vertex.
Void |
number the minimum depth of it's vertex
public function getMaxDepth(Void):NumberReturns the max depth of its vertex.
Void |
number the maximum depth of it's vertex
public function toString(Void):String
Get a String represntation of the NFace3D.
A String representing the NFace3D.
public function getId(Void):NumberReturns the ID of the current face. This ID is an unique number.
Void |
Number The ID of the face.
public function enableEvents(b:Boolean):VoidEnable or not the events onPress, onRollOver and onRollOut with this face.
b | Boolean True to enable the events, false otherwise. |
public function isVisible(Void):Booleanisvisible
Say if the face is visible or not
Void |
a Boolean, true if visible, false otherwise
public function createNormale(Void):VectorCreate the normal vector of the face.
The resulting Vertex corresponding to the normal.
public function setBackSkin(s:Skin):Void
Set up the back skin of the face.
It corresponds to the skin that is applied to the back of the face, so to the faces that is normally hidden to
the user but that is visible if you've set Object3D.drawAllFaces to true.
s | The Skin to set. |
public function getBackSkin(Void):SkinReturns the the skin of the back of this face.
The Skin
getBackSkin() in sandy.core.face.IPolygon
public function swapCulling(Void):VoidThis method change the value of the "normal" clipping side. Also swap the font and back skins
Void |