| lcTIN_PntGetNext | Home |
|
HANDLE lcTIN_PntGetNext ( HANDLE hTIN, HANDLE hPnt ); |
| hTIN | |
| Handle to a TIN object. | |
| hPnt | |
| Handle to a TIN point. | |
|
Handle to the point that is placed after hPnt in the points list. If there are no points after hPnt, the function returns NULL. |
| lcTIN_PntGetFirst |
// get coordinates of all TIN points
HANDLE hTIN, hPnt;
double X, Y, Z;
hTIN = lcBlockGetTIN( hBlock, L"Demo TIN" );
if (hTIN != 0){
hPnt = lcTIN_PntGetFirst( hTIN );
while( hPnt != 0 ){
X = lcPropGetFloat( hPnt, LC_PROP_TINPNT_X );
Y = lcPropGetFloat( hPnt, LC_PROP_TINPNT_Y );
Z = lcPropGetFloat( hPnt, LC_PROP_TINPNT_Z );
// get next point
hPnt = lcTIN_PntGetNext( hTIN, hPnt );
}
}