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, or defaults if facetPoints.length < 3:

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

@see sumVolumeBetweenFacetsAndPlane

Parameter Type Description
facetPoints GrowableXYZArray input 3D polygon, wraparound point optional. This array is mutated on return if options.skipMoments === false: each point is projected onto the plane.
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, or defaults if facetPoints.length < 3:

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

Defined in

Last Updated: 13 December, 2025