Mesh.CreatePlanar (IList<Point3D>, natureType) Method
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.
Parameters
Outer contour of the region oriented counter-clockwise
- meshNature
- natureType
Nature of the Mesh
Return Value
MeshThe created mesh.
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.