Click or drag to resize
AB4D logo

DXMeshGeometry3D Properties

The DXMeshGeometry3D type exposes the following members.

Properties
 NameDescription
Public propertyAutomaticallyChangeToDynamicVertexBuffer Gets or sets a Boolean property that after 3 changes of the vertex buffer sets the CreateDynamicVertexBuffer to true (if not already set to true). This improves performance of subsequent buffer changes. Default value is true.
Public propertyCreateDynamicIndexBuffer Gets or sets a Boolean that specifies if the index buffer is created as a dynamic buffer. This can provide slightly better performance for cases when index buffer is updated very often. Default value is false.
Public propertyCreateDynamicVertexBuffer Gets or sets a Boolean that specifies if the vertex buffer is created as a dynamic buffer. This can provide slightly better performance for cases when vertex buffer is updated very often. Default value is false.
Public propertyFlipYTextureCoordinate Gets or sets a Boolean that specifies if y texture coordinate is changed to y' = 1 - y (flipped texture coordinates instead of flipping the image is much faster)
Public propertyIsIndexBufferDirty Gets a boolean that specifies that index buffer needs to be regenerated.
Public propertyIsVertexBufferDirty Gets a boolean that specifies that vertex buffer needs to be regenerated (Positions, Normals or TextureCoordinates have changed)
Public propertyMeshGeometry Gets MeshGeometry3D that is used to create this DXMeshGeometry3D.
Public propertyOctTree Gets or sets an MeshOctTree that can be used for hit testing. The MeshOctTree is automatically generated when number of positions in this mesh is bigger or equal to the value set in MeshPositionsCountForOctTreeGeneration.
Public propertyPositionsCount Gets a number of positions that are defined by this mesh.
Public propertyTriangleIndicesCount Gets a number of triangle indices that are defined by this mesh.
Public propertyTrianglesCount Gets the number of triangles that are used to define this mesh.
Public propertyVersion Gets the version number of the DirectX buffers created from this MeshGeometry3D. Version is increased each time the buffers change. Note: When MeshGeometry3D is changed a lot of times, the Version value can overflow from positive to negative numbers (to prevent problems do not check for bigger value but for not equal value)
Top
See Also