Свойство | Type | Description | |
---|---|---|---|
RefreshPrimitive | void |
Méthode | Description | |
---|---|---|
Clone ( ) : Framework.Component |
Clone this model instance
|
|
CreateCapsule ( float height = 1f, float radius = 0.5f, int tessellation = 16 ) : |
Creates the capsule.
|
|
CreateCone ( float height = 1.0f, float diameter = 1.0f, int tessellation = 16 ) : |
Creates the cone.
|
|
CreateCube ( float size = 1.0f ) : |
Creates the cube.
|
|
CreateCylinder ( float height = 1.0f, float diameter = 1.0f, int tessellation = 16 ) : |
Creates the cylinder.
|
|
CreateFromMesh ( Mesh mesh ) : |
Creates the cube.
|
|
CreateFromMesh ( Mesh mesh, BoundingBox boundingBox ) : |
Creates the cube.
|
|
CreatePlane ( System.Vector3 normal = null, float size = 1.0f ) : |
Creates the plane.
|
|
CreatePyramid ( float size = 1.0f ) : |
Creates the pyramid.
|
|
CreateSphere ( float diameter = 1.0f, int tessellation = 8 ) : |
Creates the sphere.
|
|
CreateTeapot ( float size = 1.0f, int tessellation = 8 ) : |
Creates the teapot.
|
|
CreateTorus ( float diameter = 1.0f, float thickness = 0.333f, int tessellation = 16 ) : |
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éthode | Description | |
---|---|---|
Initialize ( ) : void |
Performs further custom initialization for this instance.
|
|
LoadModel ( ) : void |
Load the static model
|
|
UnloadModel ( ) : void |
Unload the static model
|
Méthode | Description | |
---|---|---|
RefreshPrimitive ( ) : void |
Refresh primitive model
|
public static CreateCapsule ( float height = 1f, float radius = 0.5f, int tessellation = 16 ) : |
||
height | float | The height (1 by default). |
radius | float | The radius (0.5f by default). |
tessellation | int | The tessellation (16 by default). |
Résultat |
public static CreateCone ( float height = 1.0f, float diameter = 1.0f, int tessellation = 16 ) : |
||
height | float | The height (1 by default). |
diameter | float | The diameter (1 by default). |
tessellation | int | The tessellation (16 by default). |
Résultat |
public static CreateCube ( float size = 1.0f ) : |
||
size | float | The size (1 by default). |
Résultat |
public static CreateCylinder ( float height = 1.0f, float diameter = 1.0f, int tessellation = 16 ) : |
||
height | float | The height (1 by default). |
diameter | float | The diameter (1 by default). |
tessellation | int | The tessellation (16 by default). |
Résultat |
public static CreateFromMesh ( Mesh mesh ) : |
||
mesh | Mesh | The mesh |
Résultat |
public static CreateFromMesh ( Mesh mesh, BoundingBox boundingBox ) : |
||
mesh | Mesh | The mesh |
boundingBox | BoundingBox | The mesh bounding box |
Résultat |
public static CreatePlane ( System.Vector3 normal = null, float size = 1.0f ) : |
||
normal | System.Vector3 | The normal ( [0, 1, 0] by default). |
size | float | The size (1 by default). |
Résultat |
public static CreatePyramid ( float size = 1.0f ) : |
||
size | float | The size (1 by default). |
Résultat |
public static CreateSphere ( float diameter = 1.0f, int tessellation = 8 ) : |
||
diameter | float | The diameter (1 by default). |
tessellation | int | The tessellation (8 by default). |
Résultat |
public static CreateTeapot ( float size = 1.0f, int tessellation = 8 ) : |
||
size | float | The size. |
tessellation | int | The tessellation. |
Résultat |
public static CreateTorus ( float diameter = 1.0f, float thickness = 0.333f, int tessellation = 16 ) : |
||
diameter | float | The diameter (1 by default). |
thickness | float | The thickness (0.333f by default). |
tessellation | int | The tessellation (16 by default). |
Résultat |
public Model ( string modelPath ) : System | ||
modelPath | string | The model path. |
Résultat | System |
public Model ( string name, string modelPath ) : System | ||
name | string | The name. |
modelPath | string | The model path. |
Résultat | System |