pointsToTriangulatedPolyface MethodStatic

Create a polyface from a triangulation of the points.

  • The triangulation is computed as seen in the top view: z-coordinates are ignored.
  • The highest z-coordinate is preserved for points that are separated by a vertical distance.

pointsToTriangulatedPolyface(points: Point3d[], options?: StrokeOptions): undefined | IndexedPolyface

@returns triangulated polyface or undefined if triangulation was not possible.

Parameter Type Description
points Point3d[] an array of points.
options StrokeOptions (optional) stroke options:
* options.chordTol: xy-distance for equating points. For DTM points, 1-2mm may suffice. Default value is
Geometry.smallMetricDistance.
* options.needNormals: whether to assign 001 to all facets (rarely useful).
* options.needParams: whether to assign all vertices uv-parameters equal to their xy-coordinates (rarely useful).

Returns - undefined | IndexedPolyface

triangulated polyface or undefined if triangulation was not possible.

Defined in

Last Updated: 17 December, 2024