 |
TriangleModelNodeUpdateFromMesh Method |
UpdateFromMesh updates the TriangleModelNode from a single triangle from the specified mesh.
The triangle is specified by the triangle index (triangleIndex) that is multiplied by 3 to get the vertex indices of the triangle.
The vertex indices are then used to get the positions and texture coordinates of the triangle vertices.
Namespace: Ab4d.SharpEngine.SceneNodesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntaxpublic void UpdateFromMesh(
Mesh mesh,
int triangleIndex
)
Parameters
- mesh Mesh
- mesh
- triangleIndex Int32
- index of the triangle (not index from TriangleIndices array)
See Also