IModelGeometry
Description
- Derived from
-
IPreloadingResourceHandle
IMemoryConsumption
IResourceNamePrefix
IModelCounts - Extended by
-
IModelGeometryDynamic
IModelGeometrySimple
ModelGeometry abstract
Base interface for classes that represent geometry (vertices and indices) for 3D models.
IModelGeometry objects act as resource handles and produce ModelGeometryBuffer resource objects.
Public / Methods
Append
Concatenates the vertices and indices of this
model geometry and the given other in one.
No processing is performed when this method is called. Instead, the source model geometries are processed lazily, when ReadIndices or ReadVertices is called, yielding the following results:
-
IndexCount
The index counts of the source model geometries are added. -
InstanceBuffer
The instance buffers that are present in the source model geometries are ignored. The resulting model geometry will always be non-instanced. -
VertexCount
The vertex counts of the source model geometries are added. -
VertexFormat
The vertex format flags are combined. To avoid creation of unused vertex data, the source model geometries should have the same format.
All PrimitiveBatch values that refer to this
model geometry can also be used for the resulting model geometry, without adjustment. The PrimitiveBatch values for other in must be adjusted as follows:
-
PrimitiveBatch.Indexed ==
false
Call PrimitiveBatch.OffsetFirst, passing VertexCount ofthis
model geometry. -
PrimitiveBatch.Indexed ==
true
Call PrimitiveBatch.OffsetFirst, passing IndexCount ofthis
model geometry.
Dynamic
Makes this model geometry dynamic.
If necessary, a new model geometry is created by copying index and vertex data from this model geometry.
- IOException
-
If an I/O exception has occurred.
Optimized
Optimizes this model geometry by reordering those vertices that are actually referenced by the index data.
Reduced
Reduce the floating-point precision for this model geometry?
Using reduced precision will consume less memory resp. storage space, but might introduce jitter artefacts during rendering.
Public / Attributes
InstanceBuffer
The resource handle that returns a IVertexBuffer object that holds dynamic instance data to use for this model geometry object.