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. | |
| 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.
| [in] | cops | Vector with the COPs from a synchronized adquisition. |
| [in] | row | The row of the COPs to be used to compute the area. |
| sal3d::Error | On 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.
| [in] | cop | The sal3d::COP from which the row will be retrived |
| [in] | row | Number of the row to calculate its area |
| [in] | edgePoints | Number of points from the edges, to consider as members for the line of reference |
| sal3d::Error | On error |
References sal3d::COP::c_cop().
by
1.7.6.1