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.dfsuAssembly: DHI.Generic.MikeZero.DFS (in DHI.Generic.MikeZero.DFS.dll) Version: 16.0.0.0 (11.1.1.1111)
Syntax public static IList<int> FindTopLayerElements(
int[][] elementTable,
double[] x,
double[] y
)
Public Shared Function FindTopLayerElements (
elementTable As Integer()(),
x As Double(),
y As Double()
) As IList(Of Integer)
public:
static IList<int>^ FindTopLayerElements(
array<array<int>^>^ elementTable,
array<double>^ x,
array<double>^ y
)
static member FindTopLayerElements :
elementTable : int[][] *
x : float[] *
y : float[] -> IList<int>
Parameters
- elementTable
- Type: SystemInt32
- x
- Type: SystemDouble
- y
- Type: SystemDouble
Return Value
Type:
IListInt32A 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