reloadSweptPolygon Method

  • Define new planes in this ConvexClipPlaneSet so it clips to the inside of a polygon.
  • always create planes for the swept edges of the polygon
  • optionally (with nonzero sideSelect) create a cap plane using the polygon normal.

reloadSweptPolygon(points: Point3d[], sweepDirection: Vector3d, sideSelect: number): number

Parameter Type Description
points Point3d[] Points of a bounding polygon
sweepDirection Vector3d direction to sweep.
sideSelect number 0 to have no cap polygon, 1 if the sweep vector side is in, -1 if sweep vector side is out.

Defined in

Last Updated: 08 January, 2020