C# Class WaveEngine.Components.Graphics3D.Model

Inheritance: LoadableModel, IDisposable
Afficher le fichier Open project: WaveEngine/Components Class Usage Examples

Private Properties

Свойство Type Description
RefreshPrimitive void

Méthodes publiques

Méthode Description
Clone ( ) : Framework.Component

Clone this model instance

CreateCapsule ( float height = 1f, float radius = 0.5f, int tessellation = 16 ) : Model

Creates the capsule.

CreateCone ( float height = 1.0f, float diameter = 1.0f, int tessellation = 16 ) : Model

Creates the cone.

CreateCube ( float size = 1.0f ) : Model

Creates the cube.

CreateCylinder ( float height = 1.0f, float diameter = 1.0f, int tessellation = 16 ) : Model

Creates the cylinder.

CreateFromMesh ( Mesh mesh ) : Model

Creates the cube.

CreateFromMesh ( Mesh mesh, BoundingBox boundingBox ) : Model

Creates the cube.

CreatePlane ( System.Vector3 normal = null, float size = 1.0f ) : Model

Creates the plane.

CreatePyramid ( float size = 1.0f ) : Model

Creates the pyramid.

CreateSphere ( float diameter = 1.0f, int tessellation = 8 ) : Model

Creates the sphere.

CreateTeapot ( float size = 1.0f, int tessellation = 8 ) : Model

Creates the teapot.

CreateTorus ( float diameter = 1.0f, float thickness = 0.333f, int tessellation = 16 ) : Model

Creates the torus.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

GetIndices ( ) : int[]

The get indices

GetVertices ( ) : System.Vector3[]

Gets the collition info.

Model ( ) : System

Initializes a new instance of the Model class.

Model ( string modelPath ) : System

Initializes a new instance of the Model class.

Model ( string name, string modelPath ) : System

Initializes a new instance of the Model class.

Méthodes protégées

Méthode Description
Initialize ( ) : void

Performs further custom initialization for this instance.

LoadModel ( ) : void

Load the static model

UnloadModel ( ) : void

Unload the static model

Private Methods

Méthode Description
RefreshPrimitive ( ) : void

Refresh primitive model

Method Details

Clone() public méthode

Clone this model instance
public Clone ( ) : Framework.Component
Résultat Framework.Component

CreateCapsule() public static méthode

Creates the capsule.
public static CreateCapsule ( float height = 1f, float radius = 0.5f, int tessellation = 16 ) : Model
height float The height (1 by default).
radius float The radius (0.5f by default).
tessellation int The tessellation (16 by default).
Résultat Model

CreateCone() public static méthode

Creates the cone.
public static CreateCone ( float height = 1.0f, float diameter = 1.0f, int tessellation = 16 ) : Model
height float The height (1 by default).
diameter float The diameter (1 by default).
tessellation int The tessellation (16 by default).
Résultat Model

CreateCube() public static méthode

Creates the cube.
public static CreateCube ( float size = 1.0f ) : Model
size float The size (1 by default).
Résultat Model

CreateCylinder() public static méthode

Creates the cylinder.
public static CreateCylinder ( float height = 1.0f, float diameter = 1.0f, int tessellation = 16 ) : Model
height float The height (1 by default).
diameter float The diameter (1 by default).
tessellation int The tessellation (16 by default).
Résultat Model

CreateFromMesh() public static méthode

Creates the cube.
public static CreateFromMesh ( Mesh mesh ) : Model
mesh Mesh The mesh
Résultat Model

CreateFromMesh() public static méthode

Creates the cube.
public static CreateFromMesh ( Mesh mesh, BoundingBox boundingBox ) : Model
mesh Mesh The mesh
boundingBox BoundingBox The mesh bounding box
Résultat Model

CreatePlane() public static méthode

Creates the plane.
public static CreatePlane ( System.Vector3 normal = null, float size = 1.0f ) : Model
normal System.Vector3 The normal ( [0, 1, 0] by default).
size float The size (1 by default).
Résultat Model

CreatePyramid() public static méthode

Creates the pyramid.
public static CreatePyramid ( float size = 1.0f ) : Model
size float The size (1 by default).
Résultat Model

CreateSphere() public static méthode

Creates the sphere.
public static CreateSphere ( float diameter = 1.0f, int tessellation = 8 ) : Model
diameter float The diameter (1 by default).
tessellation int The tessellation (8 by default).
Résultat Model

CreateTeapot() public static méthode

Creates the teapot.
public static CreateTeapot ( float size = 1.0f, int tessellation = 8 ) : Model
size float The size.
tessellation int The tessellation.
Résultat Model

CreateTorus() public static méthode

Creates the torus.
public static CreateTorus ( float diameter = 1.0f, float thickness = 0.333f, int tessellation = 16 ) : Model
diameter float The diameter (1 by default).
thickness float The thickness (0.333f by default).
tessellation int The tessellation (16 by default).
Résultat Model

Dispose() public méthode

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Résultat void

GetIndices() public méthode

The get indices
public GetIndices ( ) : int[]
Résultat int[]

GetVertices() public méthode

Gets the collition info.
public GetVertices ( ) : System.Vector3[]
Résultat System.Vector3[]

Initialize() protected méthode

Performs further custom initialization for this instance.
protected Initialize ( ) : void
Résultat void

LoadModel() protected méthode

Load the static model
protected LoadModel ( ) : void
Résultat void

Model() public méthode

Initializes a new instance of the Model class.
public Model ( ) : System
Résultat System

Model() public méthode

Initializes a new instance of the Model class.
public Model ( string modelPath ) : System
modelPath string The model path.
Résultat System

Model() public méthode

Initializes a new instance of the Model class.
public Model ( string name, string modelPath ) : System
name string The name.
modelPath string The model path.
Résultat System

UnloadModel() protected méthode

Unload the static model
protected UnloadModel ( ) : void
Résultat void