createZSweep MethodStatic

Create a z-direction sweep of the polyline or polygon given as xy linestring values.

  • If not capped, the xyPoints array is always used unchanged.
  • If capped but the xyPoints array does not close, exact closure will be enforced by one of these:
    • If the final point is almost equal to the first, it is replaced by the exact first point.
    • if the final point is not close to the first an extra point is added.
  • If capped, the point order will be reversed if necessary to produce positive volume.

createZSweep(xyPoints: XAndY[], z: number, zSweep: number, capped: boolean): LinearSweep | undefined

Parameter Type Description
xyPoints XAndY[] array of xy coordinates
z number z value to be used for all coordinates
zSweep number the sweep distance in the z direction.
capped boolean true if caps are to be added.

Defined in

Last Updated: 08 January, 2020