volumeBetweenPolygonAndPlane MethodStatic

Compute the signed volume of the truncated prism between a facet and a plane.

  • Useful for parallel algorithms.

volumeBetweenPolygonAndPlane(facetPoints: GrowableXYZArray, plane: Plane3d, options?: VolumeBetweenPolygonAndPlaneOptions): VolumeBetweenPolygonAndPlaneOutput

@returns computed data for this facet:

  • volume6: six times the signed volume of the truncated prism between the facet and the plane.
  • area2: two times the signed area of the facet's projection onto the plane.
  • origin: origin of the facet used to accumulate area moments.
  • products: raw accumulated second moment area products of the facet's projection onto the plane.

@see sumVolumeBetweenFacetsAndPlane

Parameter Type Description
facetPoints GrowableXYZArray input 3D polygon; on return the points are projected onto the plane. Wraparound point is optional.
plane Plane3d infinite plane bounding volume between the facet and (virtual) side facets perpendicular to the plane (unmodified).
options VolumeBetweenPolygonAndPlaneOptions optional flags and pre-allocated temporary storage.

Returns - VolumeBetweenPolygonAndPlaneOutput

computed data for this facet:

  • volume6: six times the signed volume of the truncated prism between the facet and the plane.
  • area2: two times the signed area of the facet's projection onto the plane.
  • origin: origin of the facet used to accumulate area moments.
  • products: raw accumulated second moment area products of the facet's projection onto the plane.

Defined in

Last Updated: 07 June, 2025