Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: IEnumerable<VertexInfo[]> CreateMesh(bool, bool, Pt[][], bool)

  • Declared in: RT.Modeling.Md

Declaration

public static IEnumerable<VertexInfo[]> CreateMesh(
    bool closedX,
    bool closedY,
    Pt[][] pts,
    bool flatNormals = false
)

Summary

Creates a mesh (3D object surface consisting of quadrilateral faces) based on a 2D array of 3D points.

Parameters

boolclosedX If true, the first rank of pts is considered to be cyclic (start and end are joined up).
boolclosedY If true, the second rank of pts is considered to be cyclic (start and end are joined up).
Pt[][]pts The 2D array of 3D points to connect.
boolflatNormals If true, all normal vectors are made perpendicular to the faces, causing them to appear flat. Otherwise, they are averaged, causing the surface to appear smooth.

Returns

A collection of faces.