[]
        
(Showing Draft Content)

C1.Util.DX.Direct2D.Mesh.Create

Create Method

Create(RenderTarget)

Create a mesh that uses triangles to describe a shape.

Declaration
public static Mesh Create(RenderTarget renderTarget)
Parameters
Type Name Description
RenderTarget renderTarget

an instance of RenderTarget

Returns
Type Description
Mesh
Remarks

To populate a mesh, use its {{Open}} method to obtain an TessellationSink. To draw the mesh, use the render target's {{FillMesh}} method.

Create(RenderTarget, Triangle[])

Create a mesh that uses triangles to describe a shape and populates it with triangles.

Declaration
public static Mesh Create(RenderTarget renderTarget, Triangle[] triangles)
Parameters
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.

Returns
Type Description
Mesh