Click or drag to resize

DfsuUtilFindTopLayerElements Method (Int32, Double, Double)

Find element indices (zero based) of the elements being the upper-most element in its column.

This method uses the element center (x,y) coordinate, and identifies each column by having the same element center (x,y) coordinate.

Namespace:  DHI.Generic.MikeZero.DFS.dfsu
Assembly:  DHI.Generic.MIKEZero.DFS (in DHI.Generic.MIKEZero.DFS.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax
public static IList<int> FindTopLayerElements(
	int[][] elementTable,
	double[] x,
	double[] y
)

Parameters

elementTable
Type: SystemInt32
x
Type: SystemDouble
y
Type: SystemDouble

Return Value

Type: IListInt32
A list of element indices of top layer elements
Remarks
To find the number of elements in each column, assuming the result is stored in res:

For the first column it is res[0]+1.

For the i'th column, it is res[i]-res[i-1].

See Also