Mesh.CreatePlanar (IList<Point3D>, natureType) Method

Triangulates the specified 3D region.
Public Shared Function CreatePlanar( _ 
ByVal outer As IList(Of Point3D), _ 
ByVal meshNature As natureType
) As Mesh
This language is not supported or no code example is available.
public static Mesh CreatePlanar( 
IList<Point3D> outer
natureType meshNature 
)
This language is not supported or no code example is available.

Parameters

outer
IList<Point3D>

Outer contour of the region oriented counter-clockwise

meshNature
natureType

Nature of the Mesh

Return Value

Mesh

The created mesh.

Example
 
The following example demonstrate how to draw a face on the ZX plane.
 List<Point3D> outer = new List<Point3D>();
 
 outer.Add(new Point3D(0, 0, 0));
 outer.Add(new Point3D(10, 0, 0));
 outer.Add(new Point3D(20, 0, -5));
 outer.Add(new Point3D(10, 0, 20));
 outer.Add(new Point3D(0, 0, 20));
 outer.Add(new Point3D(-10, 0, -5));
 outer.Add(new Point3D(0, 0, 0));
 Mesh m = Mesh.CreatePlanar(outer, Mesh.natureType.Plain);
 m.Color = Color.Firebrick;
 m.ColorMethod = colorMethodType.byEntity;
 
 viewportProfessional1.Entities.Add(m);
 					
This language is not supported or no code example is available.
 Dim outer As List(of Point3D) = New List(of Point3D);
 
 outer.Add(New Point3D(0, 0, 0))
 outer.Add(New Point3D(10, 0, 0))
 outer.Add(New Point3D(20, 0, -5))
 outer.Add(New Point3D(10, 0, 20))
 outer.Add(New Point3D(0, 0, 20))
 outer.Add(New Point3D(-10, 0, -5))
 outer.Add(New Point3D(0, 0, 0))
 
 Dim m As Mesh = Mesh.CreatePlanar(outer, Mesh.natureType.Plain)
 m.Color = Color.Firebrick
 m.ColorMethod = colorMethodType.byEntity
 
 viewportProfessional1.Entities.Add(m)
 					
This language is not supported or no code example is available.

.NET Framework

Supported in: 4.5, 4.6, 4.7

In this article

Definition