Mesh Class
Namespace: Stride.RenderingAssembly: Stride.Rendering.dll
System.Object →
Mesh
Derived from Mesh:
[DataContract]
public class Mesh
| Name | Description | |
|---|---|---|
| Constructors | ||
| Mesh() | Initializes a new instance of the Mesh class. |
|
| Mesh(Mesh) | Initializes a new instance of the Mesh class using a shallow copy constructor. |
|
| Mesh(MeshDraw, ParameterCollection) | Initializes a new instance of the Mesh class. |
|
| Fields | ||
| BoundingBox | Gets or sets the bounding box encompassing this Mesh. |
|
| BoundingSphere | Gets the bounding sphere |
|
| Name | ||
| NodeIndex | Index of the transformation node in Model. |
|
| Skinning | ||
| Properties | ||
| Draw | ||
| MaterialIndex | ||
| Parameters | ||
Constructors
Mesh()
Initializes a new instance of the Mesh class.
public Mesh()
Mesh(Mesh)
Initializes a new instance of the Mesh class using a shallow copy constructor.
public Mesh(Mesh mesh)
Parameters
| Type | Name | Description |
|---|---|---|
| Mesh | mesh | The mesh. |
Mesh(MeshDraw, ParameterCollection)
Initializes a new instance of the Mesh class.
public Mesh(MeshDraw meshDraw, ParameterCollection parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| MeshDraw | meshDraw | The mesh draw. |
| ParameterCollection | parameters | The parameters. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | parameters |
Fields
BoundingBox
Gets or sets the bounding box encompassing this Mesh.
public BoundingBox BoundingBox
Field Value
| Type | Description |
|---|---|
| BoundingBox |
BoundingSphere
Gets the bounding sphere
public BoundingSphere BoundingSphere
Field Value
| Type | Description |
|---|---|
| BoundingSphere |
Name
public string Name
Field Value
| Type | Description |
|---|---|
| System.String |
NodeIndex
Index of the transformation node in Model.
public int NodeIndex
Field Value
| Type | Description |
|---|---|
| System.Int32 |
Skinning
public MeshSkinningDefinition Skinning
Field Value
| Type | Description |
|---|---|
| MeshSkinningDefinition |
Properties
Draw
public MeshDraw Draw { get; set; }
Property Value
| Type | Description |
|---|---|
| MeshDraw |
MaterialIndex
public int MaterialIndex { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Parameters
public ParameterCollection Parameters { get; }
Property Value
| Type | Description |
|---|---|
| ParameterCollection |