Eyeshot 9.0 WinForms API Reference
CreatePlanar<T>(IList<Point3D>,natureType) Method
Example 

WinForms Assembly > devDept.Eyeshot.Entities Namespace > Mesh Class > CreatePlanar Method : CreatePlanar<T>(IList<Point3D>,natureType) Method
Outer contour of the region oriented counter-clockwise
Nature of the Mesh
Triangulates the specified 3D region.
Syntax
'Declaration
 
Public Overloads Shared Function CreatePlanar(Of T As {New, Mesh})( _
   ByVal outer As IList(Of Point3D), _
   ByVal meshNature As Mesh.natureType _
) As T
public static T CreatePlanar<T>( 
   IList<Point3D> outer,
   Mesh.natureType meshNature
)
where T: new(), Mesh

Parameters

outer
Outer contour of the region oriented counter-clockwise
meshNature
Nature of the Mesh

Type Parameters

T

Return Value

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);
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)
See Also

Reference

Mesh Class
Mesh Members
Overload List