 |
MeshModelNode Class |
Inheritance Hierarchy Namespace: Ab4d.SharpEngine.SceneNodesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntaxpublic class MeshModelNode : ModelNode
The MeshModelNode type exposes the following members.
Constructors
Properties| | Name | Description |
|---|
 | Mesh |
Gets or sets a mesh that defined this SceneNode.
|
Top
Methods| | Name | Description |
|---|
 | DisposeWithMeshAndMaterial |
DisposeWithMeshAndMaterial first disposes the Mesh object and then calls the DisposeWithMaterial(Boolean) method to dispose the materials and SceneNode.
|
 | OnUpdate |
OnUpdate
(Overrides ModelNodeOnUpdate) |
 | SetCustomIndexBuffer(Int32, GpuBuffer, Int32, Int32, IndexType) |
Sets the TriangleIndices and a custom index buffer that is used to render this MeshModelNode.
|
 | SetCustomIndexBuffer(Int32, GpuBuffer, BoundingBox, Int32, Int32, IndexType) |
Sets the TriangleIndices and a custom index buffer that is used to render this MeshModelNode.
|
 | SetCustomVertexBuffer(PositionNormalTextureVertex, GpuBuffer, VertexBufferDescription) |
SetCustomVertexBuffer can be used to change the vertices and the vertex buffer that is used to render this MeshModelNode.
This method also recalculates the bounding box of the mesh based on the new vertices. To prevent this, also pass the existing bounding box as a parameter.
This method can be called only when Mesh is StandardMesh or TriangleMesh<PositionNormalTextureVertex>.
|
 | SetCustomVertexBuffer(PositionNormalTextureVertex, GpuBuffer, BoundingBox, VertexBufferDescription) |
SetCustomVertexBuffer can be used to change the vertices and the vertex buffer that is used to render this MeshModelNode.
This method can be called only when Mesh is StandardMesh or TriangleMesh<PositionNormalTextureVertex>.
|
Top
See Also