Click or drag to resize

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.

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

Parameters

location
Type: DHI.Mike1D.GenericILocation
the location to look for
topoID
Type: SystemString
the topo id to look for
nonInterpolatedOnly
Type: SystemBoolean
set to true iff only cross sections with Interpolated = false should be returned as neighbors
xsBefore
Type: DHI.Mike1D.CrossSectionModuleICrossSection
the cross sectin before location (smaller chainage), or null if none
xsAfter
Type: DHI.Mike1D.CrossSectionModuleICrossSection
the cross section after location (larger chainage), or null if none

Return Value

Type: 
the found cross section, or null if none found.
See Also