Default implementation of the IModelPart interface.
sealed class
|
ModelPart
|
implements
|
IModelPart
|
The primitive batch of this model in the geometry buffer.
public
property
|
Batch
{
get
set
}
|
||
type
|
PrimitiveBatch
|
||
value
|
The primitive batch or None. | ||
implements
|
IModelPart.Batch
|
See also:
IModelPart.GeometryThe behaviour flags of this model part.
public
property
|
Flags
{
get
set
}
|
||
type
|
ModelPartFlags
|
||
value
|
The model part flags. | ||
implements
|
IModelPart.Flags
|
The geometry of this model.
public
property
|
Geometry
{
get
set
}
|
||
type
|
IModelGeometry
|
||
value
|
The
geometry
of
the
model
part
or
null
if
none. |
||
implements
|
IModelPart.Geometry
|
Remarks:
IModelGeometry objects may be shared between model parts.
See also:
IModelPart.BatchThe material of this model.
public
property
|
Material
{
get
set
}
|
||
type
|
IMaterial
|
||
value
|
The
material
or
null
if
none. |
||
implements
|
IModelPart.Material
|
Remarks:
IModelGeometry objects may be shared between model parts.
Creates a new instance of ModelPart.
public
constructor
|
ModelPart
()
|
Creates a new instance of ModelPart.
public
constructor
|
ModelPart
(IModelPart other)
|
||
params
|
other
|
[not-null]
|
The other IModelPart to copy from. |
Creates a new instance of ModelPart.
public
constructor
|
ModelPart
(IModelGeometry geometry,
PrimitiveBatch batch,
IMaterial material = null,
ModelPartFlags flags = ModelPartFlags.FrontFaces)
|
||
params
|
geometry
|
Initial value for Geometry. | |
batch
|
Initial value for Batch. | ||
material
|
Initial
value
for
Material.
Defaults
to
null .
|
||
flags
|
Initial value for Flags. Defaults to FrontFaces. |
Validates the state of this object.
public
method
|
Validate
(Validator validator)
|
||
params
|
validator
|
[not-null]
|
The validator object. |
implements
|
IValidatable.Validate
|