| return
|
function
|
description
|
| float
|
setColor()
|
get mesh approximated height.
|
| float
|
getHeight()
|
get mesh apporixmated height.
|
| bool
|
getHasAlpha()
|
get if the mesh has alpha.
|
| String
|
getName()
|
get mesh name.
|
| Vec3
|
getVertex(int index)
|
Returns the current local position for this mesh. Animation will effect the position.
|
| Vec3
|
getNormal(int index)
|
Returns the current local normal for this mesh. Animation will effect the position.
|
| Vec3
|
getTangent(int index)
|
Returns the current local tangent for this mesh. Animation will effect the position.
|
| Vec2
|
getUvCoord(int index)
|
Returns the uvCoord.
|
| Vec3
|
getColor(int index)
|
Returns the color.
|
| int
|
getIndex(int index)
|
return the vertex index.
|
| int
|
getNumVertex()
|
Return number of vertices.
|
| int
|
getNumIndex()
|
Return number of index.
|
|
|
setColor(Vec3 color)
|
Set shader.
|
|
|
setName(string name)
|
Set the name of the mesh
|
|
|
setColor(Vec4 color)
|
Set shader.
|
|
|
setVisible(bool visible)
|
Set visible.
|
|
|
rotate(Vec3 axis, float rad)
|
roate around axis.
|
|
|
rotateAroundPoint(Vec3 axis, Vec3 point, float rad)
|
rotae around a given point on the given axis.
|
| NodeMesh
|
splitMeshByBoneName(string boneName)
|
Split the mesh in two, return nil when mesh is no splited.
|