C# 클래스 WaveEngine.Components.Graphics3D.Model

상속: LoadableModel, IDisposable
파일 보기 프로젝트 열기: WaveEngine/Components 1 사용 예제들

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