Click or drag to resize
DfsuUtilFindTopLayerElements Method (IDfsuFile)
Find element indices (zero-based) of the elements being the upper-most element in its column.

Each column is identified by matching node id numbers. For 3D elements the last half of the node numbers of the bottom element must match the first half of the node numbers in the top element. For 2D vertical elements the order of the node numbers in the bottom element (last half number of nodes) are reversed compared to those in the top element (first half number of nodes).

Namespace: DHI.Generic.MikeZero.DFS.dfsu
Assembly: 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(
	this IDfsuFile dfsuFile
)

Parameters

dfsuFile
Type: DHI.Generic.MikeZero.DFS.dfsuIDfsuFile

Return Value

Type: IListInt32
A list of element indices of top layer elements

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IDfsuFile. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
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