sumFacetAreas MethodStatic

Sum all facet areas.

sumFacetAreas(source: PolyfaceVisitor | Polyface, vectorToEye?: Vector3d): number

@returns the sum of all facet areas. Return 0 if source is undefined.

Parameter Type Description
source PolyfaceVisitor | Polyface polyface or visitor.
vectorToEye Vector3d compute sum of (signed) facet areas projected to a view plane perpendicular to vectorToEye.
If vectorToEye is not provided, actual facet areas are calculated (without any projection).

Returns - number

the sum of all facet areas. Return 0 if source is undefined.

Defined in

Last Updated: 14 November, 2024