IModelGeometryDynamic
Description
- Derived from
Base interface for model geometries that can be updated at runtime.
To update a model geometry, perform the following steps:
-
Use any of the following methods to obtain the model geometry data arrays and modify their contents:
-
Call UpdateRange zero or more times, in order to specify the vertex and index ranges that have been modified in step
(1). The IModelGeometryListener.IndicesUpdated resp. IModelGeometryListener.VerticesUpdated methods will be called on all listeners that have been added with UpdateListenerAdd. -
Call Model.ColliderDirty if the updated model geometry shall be taken into account for spatial queries.
Public / Methods
UpdateColor
Returns the Semantic.Texture vertex array that holds the per-vertex data for ModelVertexFormat.Color.
- See also
UpdateNormal
Returns the Semantic.Normal vertex array that holds the per-vertex data for ModelVertexFormat.Normal.
UpdatePosition
Returns the Semantic.Position vertex array that holds the per-vertex data for ModelVertexFormat.Position and ModelVertexFormat.PositionExtra.
UpdateTangent
Returns the Semantic.TangentX / Semantic.TangentY vertex array that holds the per-vertex data for ModelVertexFormat.TangentX / ModelVertexFormat.TangentY.
UpdateTextureCoords
Returns the Semantic.TextureCoords / Semantic.TextureCoordsExtra vertex array that holds the per-vertex data for ModelVertexFormat.TextureCoords / ModelVertexFormat.TextureCoordsExtra.