Namespaces | Functions
Area

Namespaces

namespace  sal3d::Area
 

Namespace for the Area Tool functions.


Functions

float sal3d::Area::areaToRefLine (const sal3d::COP &cop, int row, int edgePoints)
 Calculates the area of a given COP row over a base.
float sal3d::Area::areaEnclosed (const std::vector< sal3d::COP > &cops, int row)
 Calculates the area enclosed by a row of several COP objects.

Function Documentation

float sal3d::Area::areaEnclosed ( const std::vector< sal3d::COP > &  cops,
int  row 
) [inline]

Calculates the area enclosed by a row of several COP objects.

This function requires linking with area.lib (import library for area.dll).

Considering that the input COPs will come from synchronized RangeMap acquisitions, the input COP rows have the meaning of different surface profiles for the same slice of the object scanned. The function returns the area enclosed by the convex polygon determined by the Y-Z points of all the COP rows. The function, then, assumes that the points in that row have a constant X coordinate.

Parameters:
[in]copsVector with the COPs from a synchronized adquisition.
[in]rowThe row of the COPs to be used to compute the area.
Returns:
The area enclosed by the COP objects rows.
Exceptions:
sal3d::ErrorOn error
float sal3d::Area::areaToRefLine ( const sal3d::COP cop,
int  row,
int  edgePoints 
) [inline]

Calculates the area of a given COP row over a base.

This function requires linking with area.lib (import library for area.dll).

Considering that the input sal3d::COP will come from a RangeMap acquisition, a sal3d::COP row has the meaning of a RangeMap profile in 3D metric coordinates. Additionally, the function assumes that the points in that row have a constant X coordinate. This function calculates the area enclosed by the Y-Z points in the COP row and a reference line. It calculates the reference line taking some points from each edge of the row. So, this area calculation function assumes that the COP row includes at the edges enough points for the surface under the scanned object.

You can choose the amount of points taken from each edge considered as part of the base surface.

Parameters:
[in]copThe sal3d::COP from which the row will be retrived
[in]rowNumber of the row to calculate its area
[in]edgePointsNumber of points from the edges, to consider as members for the line of reference
Returns:
Area of the given row from the sal3d::COP
Exceptions:
sal3d::ErrorOn error

References sal3d::COP::c_cop().