Geometry |
public class GeometryMesh : StandardMesh
The GeometryMesh type exposes the following members.
Name | Description | |
---|---|---|
GeometryMesh(String) | Constructor | |
GeometryMesh(Vector3, Int32, Boolean, String) | Constructor | |
GeometryMesh(Vector3, Vector3, Int32, String) | Constructor | |
GeometryMesh(Vector3, Vector2, Int32, Boolean, String) | Constructor | |
GeometryMesh(Vector3, Vector3, Vector2, Int32, String) | Constructor |
Name | Description | |
---|---|---|
Normals | Gets or sets an array of Vector3 that defines the normals for this mesh. When Normals property value or the data in the normals array are changed and if this mesh was already initialized (IsInitialized is true) then you need to call UpdateMesh or UpdateMesh(BoundingBox) method for the changes to take effect. | |
Positions | Gets or sets an array of Vector3 that defines the positions for this mesh. When Positions property value or the data in the positions array are changed and if this mesh was already initialized (IsInitialized is true) then you need to call UpdateMesh or UpdateMesh(BoundingBox) method for the changes to take effect. | |
TextureCoordinates | Gets or sets an array of Vector2 that defines the texture coordinates for this mesh. When TextureCoordinates property value or the data in the positions array are changed and if this mesh was already initialized (IsInitialized is true) then you need to call UpdateMesh or UpdateMesh(BoundingBox) method for the changes to take effect. |
Name | Description | |
---|---|---|
GetDataChannel |
GetDataChannel returns an object with the data from the specified channel.
For example, for Positions an array of Vector3 is returned with positions defined by this mesh.
Executing this method may take some time because the method may need to create new array objects and copy data from some other data structure (for example an array of PositionNormalTextureVertex values).
(Overrides TriangleMeshTGetDataChannel(MeshDataChannelTypes)) | |
OnUpdateMesh |
OnUpdateMesh
(Overrides TriangleMeshTOnUpdateMesh(Boolean)) | |
UpdateBoundingBox |
UpdateBoundingBox method calculates the BoundingBox from the Vertices.
(Overrides TriangleMeshTUpdateBoundingBox) | |
UpdateNormals | UpdateNormals method calculates the normals from the positions and triangle indices. |