Share via


Mesh Class

Definition

Meshes contain geometry data and Material references for rendering.

public ref class Mesh : Microsoft::Azure::RemoteRendering::ResourceBase
public class Mesh : Microsoft.Azure.RemoteRendering.ResourceBase
type Mesh = class
    inherit ResourceBase
Public Class Mesh
Inherits ResourceBase
Inheritance

Remarks

Meshes can't be loaded directly, instead when a model is loaded, for instance through Microsoft.Azure.RemoteRendering.RenderingConnection.LoadModelAsync(Microsoft.Azure.RemoteRendering.LoadModelOptions), the loaded model contains at least one Entity which has a MeshComponent which in turn references a mesh. Once a model is loaded, you can get the mesh reference and also assign it to other objects.

Mesh data can't be modified at runtime. It is possible to modify the materials that a mesh references, however, that would affect all entities which use that mesh. Instead, the preferred method is to specify override materials on a MeshComponent to change which materials are used for rendering.

Properties

Bounds

Returns the local-space bounding box of the mesh.

InternalId

Only used for testing

(Inherited from ResourceBase)
InteropId

Only used for testing

(Inherited from ResourceBase)
Materials

The list of materials used for rendering the mesh, unless overridden by a MeshComponent.

Type

The exact type of this resource.

Valid

Whether this resource is still valid.

Methods

AsToolingObject<ToolingObject>()

Only used for testing

(Inherited from ResourceBase)
Equals(Object) (Inherited from ResourceBase)
GetHashCode() (Inherited from ResourceBase)
GetMaterials(List<Material>)
GetResourceStateAsync_Experimental()

This asynchronous function retrieves the current state of this mesh resource.

Applies to

See also