Class PrimitiveBaseMesh
Base class for primitive mesh components.
Inheritance
PrimitiveBaseMesh
Implements
Inherited Members
Namespace: Evergine.Components.Graphics3D
Assembly: Evergine.Components.dll
Syntax
public abstract class PrimitiveBaseMesh : MeshComponent, IDependencyObject
Constructors
PrimitiveBaseMesh()
Initializes a new instance of the PrimitiveBaseMesh class.
Declaration
public PrimitiveBaseMesh()
Properties
Model
Gets the model data.
Declaration
public Model Model { get; }
Property Value
Type | Description |
---|---|
Model |
ModelMeshName
Gets the name of the mesh to render.
Declaration
public string ModelMeshName { get; }
Property Value
Type | Description |
---|---|
string |
Methods
Build(PrimitiveModelBuilder)
Builds a primitive instance using the given builder.
Declaration
protected abstract void Build(PrimitiveModelBuilder builder)
Parameters
Type | Name | Description |
---|---|---|
PrimitiveModelBuilder | builder | The primitive model builder. |
Destroy()
Destroys this object.
Declaration
public override void Destroy()
Overrides
GetPrimitiveHashCode()
Gets a unique identifier of the primitive definition.
Declaration
protected abstract int GetPrimitiveHashCode()
Returns
Type | Description |
---|---|
int | A unique identifier of the primitive definition. |
NotifyPropertyChange()
Notifies that the primitive definition has changed, and the model should be refreshed.
Declaration
protected void NotifyPropertyChange()
OnAttached()
Invoked when the object is attached to the system.
Declaration
protected override bool OnAttached()
Returns
Type | Description |
---|---|
bool | True if everything is OK. |