XYZGetIsoline retrieves the isoline x/y coordinates of a 3D dataset.
Return Value
rmXY is a 2 column matrix with the x/y coordinates or 0.0 if the isoline specified does not exist. .. us.params
Parameters
A handle for a dataset created with XYZCreate.
nIsoValue is the index of the isoline. The index starts with 1. The index of the smallest isoline value is 1.
nLineIndex is the index of the isoline element, starting with 1.
Example
The following example converts all isolines of a 3D dataset to 2D datasets.
def XYZ_to_XY(hXYZData)
{
hLayer = GetParent(hXYZData)
nIso = XYZGetNumberOfIsoValues(hXYZData);
rvValues=XYZGetIsoValues(hXYZData);
for (i in 1:nIso) {
j = 1;
while (1) {
xy = XYZGetIsoline(hXYZData, i, j);
if (len(xy) == 1) {
break;
}
hXY = XYCreate(sprintf("%g", rvValues[i]), xy[;1], xy[;2]);
LayerAddDataset(hLayer, hXY);
j = j+1;
}
}
}
See also
id-877726