Click or drag to resize
Ab4d.SharpEngine logo

MeshModelNode Class

MeshModelNode is a SceneNode that is defined by a custom mesh and use Material and BackMaterial.
Inheritance Hierarchy

Namespace: Ab4d.SharpEngine.SceneNodes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
Syntax
C#
public class MeshModelNode : ModelNode

The MeshModelNode type exposes the following members.

Constructors
Properties
 NameDescription
Public propertyMesh Gets or sets a mesh that defined this SceneNode.
Top
Methods
 NameDescription
Public methodDisposeWithMeshAndMaterial DisposeWithMeshAndMaterial first disposes the Mesh object and then calls the DisposeWithMaterial(Boolean) method to dispose the materials and SceneNode.
Protected methodOnUpdate OnUpdate
(Overrides ModelNodeOnUpdate)
Public methodSetCustomIndexBuffer(Int32, GpuBuffer, Int32, Int32, IndexType) Sets the TriangleIndices and a custom index buffer that is used to render this MeshModelNode.
Public methodSetCustomIndexBuffer(Int32, GpuBuffer, BoundingBox, Int32, Int32, IndexType) Sets the TriangleIndices and a custom index buffer that is used to render this MeshModelNode.
Public methodSetCustomVertexBuffer(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>.
Public methodSetCustomVertexBuffer(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