Eyeshot 11 WinForms API Reference
WinForms Assembly / devDept.Eyeshot.Entities Namespace / Mesh Class / CreatePlanar Method / CreatePlanar(IList<Point3D>,natureType) Method
Outer contour of the region oriented counter-clockwise
Nature of the Mesh
Example

In This Topic
    CreatePlanar(IList<Point3D>,natureType) Method
    In This Topic
    Triangulates the specified 3D region.
    Syntax
    'Declaration
     
    Public Overloads Shared Function CreatePlanar( _
       ByVal outer As IList(Of Point3D), _
       ByVal meshNature As Mesh.natureType _
    ) As Mesh
    public static Mesh CreatePlanar( 
       IList<Point3D> outer,
       Mesh.natureType meshNature
    )

    Parameters

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

    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