CrossSectionDataFindNeighborCrossSections Method

Find the cross section's neighbors on the same reach and with the same topoID. If there is another cross section at that location already, return its neighbors. TODO: What to return if the branch only has one global cross section? Currently null.

Definition

Namespace: DHI.Mike1D.CrossSectionModule
Assembly: DHI.Mike1D.CrossSectionModule (in DHI.Mike1D.CrossSectionModule.dll) Version: 24.0.0.0 (11.1.1.1111)
C#
public void FindNeighborCrossSections(
	ILocation location,
	string topoID,
	bool nonInterpolatedOnly,
	out ICrossSection xsBefore,
	out ICrossSection xsAfter
)

Parameters

location  ILocation
the location to look for
topoID  String
the topo id to look for
nonInterpolatedOnly  Boolean
set to true iff only cross sections with Interpolated = false should be returned as neighbors
xsBefore  ICrossSection
The cross section before location (smaller chainage), or null if none
xsAfter  ICrossSection
The cross section after location (larger chainage), or null if none

Return Value

the found cross section, or null if none found.

See Also