Functions | |
| void | SPI_CAL_gravity_profile (int pos, double *pt) |
| Calculates the point of the center of gravity of the profile. | |
| double | SPI_CAL_surface_profile (int pos, int plane) |
| Calculates the area of a profile. | |
| double | SPI_CAL_distance_point_profile (int pos, int plane, double *pt) |
| Calculates the minimum distance between a point and a profile. | |
| double | SPI_CAL_sort_point (int sortType, int indTab1stPt, int indTab2ndPt) |
| Optimizes an array of points and returns the total distance. | |
Basic
| double SPI_CAL_distance_point_profile | ( | int | pos, |
| int | plane, | ||
| double * | pt ) |
Calculates the minimum distance between a point and a profile.
| [in] | pos | index of a profile element in the database |
| [in] | plane | plane of the point used to calculate the distance |
| [in] | pt | point of reference |
| void SPI_CAL_gravity_profile | ( | int | pos, |
| double * | pt ) |
Calculates the point of the center of gravity of the profile.
| [in] | pos | index of a profile element in the database |
| [out] | pt | point of center of gravity (TR3) |
| double SPI_CAL_sort_point | ( | int | sortType, |
| int | indTab1stPt, | ||
| int | indTab2ndPt ) |
Optimizes an array of points and returns the total distance.
| [in] | sortType | sorting method
|
| [in] | indTab1stPt | index of the table containing the starting points |
| [in] | indTab2ndPt | index of the table containing the end points (in case of profiles), or -1 |
The table ind_tab now contains the points sorted according to the method "Auto Optimization"
| double SPI_CAL_surface_profile | ( | int | pos, |
| int | plane ) |
Calculates the area of a profile.
| [in] | pos | index of a profile element in the database |
| [in] | plane | reference plane |