Class CubeMesh
Cube primitive mesh. To render this mesh use the MeshRenderer class.
Inheritance
CubeMesh
  Implements
Inherited Members
Namespace: Evergine.Components.Graphics3D
Assembly: Evergine.Components.dll
Syntax
public class CubeMesh : PrimitiveBaseMesh, IDependencyObject
  Constructors
CubeMesh()
Initializes a new instance of the CubeMesh class.
Declaration
public CubeMesh()
  Properties
Size
Gets or sets the size of the cube. Must be greater than 0.
Declaration
[RenderPropertyAsFInput(1.1920929E-07, 3.4028235E+38)]
public float Size { get; set; }
  Property Value
| Type | Description | 
|---|---|
| float | 
UMirror
Gets or sets a value indicating whether to flip the horizontal texture coordinate.
Declaration
public bool UMirror { get; set; }
  Property Value
| Type | Description | 
|---|---|
| bool | 
UOffset
Gets or sets the horizontal texture coordinate offset.
Declaration
public float UOffset { get; set; }
  Property Value
| Type | Description | 
|---|---|
| float | 
UTile
Gets or sets the horizontal texture coordinate scale factor.
Declaration
public float UTile { get; set; }
  Property Value
| Type | Description | 
|---|---|
| float | 
VMirror
Gets or sets a value indicating whether to flip the vertical texture coordinate.
Declaration
public bool VMirror { get; set; }
  Property Value
| Type | Description | 
|---|---|
| bool | 
VOffset
Gets or sets the vertical texture coordinate offset.
Declaration
public float VOffset { get; set; }
  Property Value
| Type | Description | 
|---|---|
| float | 
VTile
Gets or sets the vertical texture coordinate scale factor.
Declaration
public float VTile { get; set; }
  Property Value
| Type | Description | 
|---|---|
| float | 
Methods
Build(PrimitiveModelBuilder)
Builds a primitive instance using the given builder.
Declaration
protected override void Build(PrimitiveModelBuilder builder)
  Parameters
| Type | Name | Description | 
|---|---|---|
| PrimitiveModelBuilder | builder | The primitive model builder.  | 
      
Overrides
GetPrimitiveHashCode()
Gets an unique identifier of the primitive definition.
Declaration
protected override int GetPrimitiveHashCode()
  Returns
| Type | Description | 
|---|---|
| int | An unique identifier of the primitive definition.  |