computeXYZWireMomentSums MethodStatic
Return MomentData with the sums of wire moments.
- The input curve should lie in a plane parallel to the xy-plane, as z-coords will be ignored.
- If
rawMomentDatais the MomentData returned by computeXYAreaMoments, convert to principal axes and moments with callprincipalMomentData = MomentData.inertiaProductsToPrincipalAxes (rawMomentData.origin, rawMomentData.sums); rawMomentData.originis the wire centroid ofcurve.rawMomentData.sums.weight()is the signed length ofcurve.
computeXYZWireMomentSums(curve: AnyCurve): undefined | MomentData
| Parameter | Type | Description |
|---|---|---|
| curve | AnyCurve | any CurveCollection or CurvePrimitive. |
Returns - undefined | MomentData
Defined in
- curve/RegionOps.ts Line 186
Last Updated: 30 October, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.