You are here: Start » AVL.NET » Function Reference » Surface » Surface Features » AVL.SurfaceMassCenter

AVL.SurfaceMassCenter

Computes the mass center of surface points.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void SurfaceMassCenter
(
	AvlNet.Surface inSurface,
	NullableRef<AvlNet.Region> inRoi,
	out AvlNet.Point3D outMassCenter
)

Parameters

Name Type Range Default Description
inSurfaceAvlNet.SurfaceInput surface.
inRoiAvlNet.NullableRef<AvlNet.Region>Region of interest. Default value: atl::NIL.
outMassCenterAvlNet.Point3DMass center of the surface points.

Errors

List of possible exceptions:

Error type Description
DomainError No valid point in given region in SurfaceMassCenter.
DomainError Region of interest exceeds an input surface in SurfaceMassCenter.

Function Overrides

See also