Open Rails

SuperElevationManager.DecomposeStaticSuperElevation(Viewer, List, TrackObj, WorldPosition, Int32, Int32, String) Method

[This is preliminary documentation and subject to change.]

Decompose and add a SuperElevation on top of MSTS track section

public static bool DecomposeStaticSuperElevation(
   Viewer viewer,
   List<DynamicTrackViewertrackList,
   TrackObj trackObj,
   WorldPosition worldMatrixInput,
   int TileX,
   int TileZ,
   string shapeFilePath
);

Parameters

viewer
Viewer reference.
trackList
DynamicTrackViewer list.
trackObj
Dynamic track section to decompose.
worldMatrixInput
Position matrix.
TileX
TileX coordinates.
TileZ
TileZ coordinates.
shapeFilePath
Path to the shape file.

See Also

SuperElevationManager Class | Orts.Viewer3D Namespace | SuperElevationManager.DecomposeStaticSuperElevation Overload List