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 (defaultundefined).products: raw accumulated second moment area products of the facet's projection onto the plane (defaultundefined).
@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 (defaultundefined).products: raw accumulated second moment area products of the facet's projection onto the plane (defaultundefined).
Defined in
- geometry3d/PolygonOps.ts Line 770
Last Updated: 13 December, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.