RhinoCommon API
VolumeMassPropertiesCompute Method (Surface) |
Compute the VolumeMassProperties for a single Surface.
Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll)
public static VolumeMassProperties Compute( Surface surface )
Public Shared Function Compute ( surface As Surface ) As VolumeMassProperties
Parameters
- surface
- Type: Rhino.GeometrySurface
Surface to measure.
Return Value
Type: VolumeMassPropertiesThe VolumeMassProperties for the given Surface or null on failure.
| Exception | Condition |
|---|---|
| ArgumentNullException | When surface is null. |