[]
Create a mesh that uses triangles to describe a shape.
public static Mesh Create(RenderTarget renderTarget)
| Type | Name | Description |
|---|---|---|
| RenderTarget | renderTarget | an instance of RenderTarget |
| Type | Description |
|---|---|
| Mesh |
To populate a mesh, use its {{Open}} method to obtain an TessellationSink. To draw the mesh, use the render target's {{FillMesh}} method.
Create a mesh that uses triangles to describe a shape and populates it with triangles.
public static Mesh Create(RenderTarget renderTarget, Triangle[] triangles)
| Type | Name | Description |
|---|---|---|
| RenderTarget | renderTarget | an instance of RenderTarget |
| Triangle[] | triangles | An array of Triangle structures that describe the triangles to add to this mesh. |
| Type | Description |
|---|---|
| Mesh |