Click or drag to resize

GM_CalcVolumeAlongLine

Calculates the cut-and-fill volumes along the given line relative to the cut heights for each vertex. The heights used between points will be interpolated between the heights at the start and end of each segment.

Syntax
GM_Error_t32 GM_CalcVolumeAlongLine
(
GM_LayerHandle_t32              aLayer,         // IN: Layer to get elevations from or NULL for topmost layer at each point
const GM_LineVolumeParams_t*    aVolumeParms,   // IN: Parameters for line volume calculation
double*                         aCutVolume,     // OUT: Cut volume in cubic meters
double*                         aFillVolume     // OUT: Fill volume in cubic meters
);