Class QubeShape
Represents a shape that defines a cube in three-dimensional space.
Inherited Members
Namespace: Genesis.Graphics.Shapes
Assembly: Genesis.dll
Syntax
public class QubeShape : Shape
Constructors
QubeShape()
Declaration
public QubeShape()
Methods
GetNormals()
Gets the normals defining the cube shape.
Declaration
public float[] GetNormals()
Returns
Type | Description |
---|---|
float[] | An array of floating-point values representing the normals of the cube faces. |
Remarks
The normals are defined in groups of three for each triangle face.
GetShape()
Gets the vertices defining the cube shape.
Declaration
public override float[] GetShape()
Returns
Type | Description |
---|---|
float[] | An array of floating-point values representing the vertices of the cube. |
Overrides
Remarks
The vertices are defined in groups of three for each triangle face.
GetTextureCoordinates()
Gets the texture coordinates defining the cube shape.
Declaration
public float[] GetTextureCoordinates()
Returns
Type | Description |
---|---|
float[] | An array of floating-point values representing the texture coordinates of the cube. |
Remarks
The texture coordinates are defined in groups of two for each vertex.