C# Класс WaveEngine.Components.Graphics3D.Model

Наследование: LoadableModel, IDisposable
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
RefreshPrimitive void

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
Initialize ( ) : void

Performs further custom initialization for this instance.

LoadModel ( ) : void

Load the static model

UnloadModel ( ) : void

Unload the static model

Приватные методы

Метод Описание
RefreshPrimitive ( ) : void

Refresh primitive model

Описание методов

Clone() публичный Метод

Clone this model instance
public Clone ( ) : Framework.Component
Результат Framework.Component

CreateCapsule() публичный статический Метод

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).
Результат Model

CreateCone() публичный статический Метод

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).
Результат Model

CreateCube() публичный статический Метод

Creates the cube.
public static CreateCube ( float size = 1.0f ) : Model
size float The size (1 by default).
Результат Model

CreateCylinder() публичный статический Метод

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).
Результат Model

CreateFromMesh() публичный статический Метод

Creates the cube.
public static CreateFromMesh ( Mesh mesh ) : Model
mesh Mesh The mesh
Результат Model

CreateFromMesh() публичный статический Метод

Creates the cube.
public static CreateFromMesh ( Mesh mesh, BoundingBox boundingBox ) : Model
mesh Mesh The mesh
boundingBox BoundingBox The mesh bounding box
Результат Model

CreatePlane() публичный статический Метод

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).
Результат Model

CreatePyramid() публичный статический Метод

Creates the pyramid.
public static CreatePyramid ( float size = 1.0f ) : Model
size float The size (1 by default).
Результат Model

CreateSphere() публичный статический Метод

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).
Результат Model

CreateTeapot() публичный статический Метод

Creates the teapot.
public static CreateTeapot ( float size = 1.0f, int tessellation = 8 ) : Model
size float The size.
tessellation int The tessellation.
Результат Model

CreateTorus() публичный статический Метод

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).
Результат Model

Dispose() публичный Метод

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Результат void

GetIndices() публичный Метод

The get indices
public GetIndices ( ) : int[]
Результат int[]

GetVertices() публичный Метод

Gets the collition info.
public GetVertices ( ) : System.Vector3[]
Результат System.Vector3[]

Initialize() защищенный Метод

Performs further custom initialization for this instance.
protected Initialize ( ) : void
Результат void

LoadModel() защищенный Метод

Load the static model
protected LoadModel ( ) : void
Результат void

Model() публичный Метод

Initializes a new instance of the Model class.
public Model ( ) : System
Результат System

Model() публичный Метод

Initializes a new instance of the Model class.
public Model ( string modelPath ) : System
modelPath string The model path.
Результат System

Model() публичный Метод

Initializes a new instance of the Model class.
public Model ( string name, string modelPath ) : System
name string The name.
modelPath string The model path.
Результат System

UnloadModel() защищенный Метод

Unload the static model
protected UnloadModel ( ) : void
Результат void