Class RoadFile
Last update: 16.07.2025Namespace: VM.Models.Road
Assembly: VM.Models.Road.dll
public class RoadFile
Inheritance
Extension Methods
LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)
Properties
DefaultUIncrement
public double DefaultUIncrement { get; }
Property Value
DefaultVIncrement
public double DefaultVIncrement { get; }
Property Value
NumUPoints
public ulong NumUPoints { get; }
Property Value
NumVPoints
public ulong NumVPoints { get; }
Property Value
NumberOfNodes
public ulong NumberOfNodes { get; }
Property Value
NumberOfQuadElements
public ulong NumberOfQuadElements { get; }
Property Value
NumberOfTriElements
public ulong NumberOfTriElements { get; }
Property Value
RoadLength
public double RoadLength { get; }
Property Value
Type
public RoadType Type { get; }
Property Value
UEnd
public double UEnd { get; }
Property Value
UStart
public double UStart { get; }
Property Value
VEnd
public double VEnd { get; }
Property Value
VStart
public double VStart { get; }
Property Value
Methods
Dispose()
public void Dispose()
Dispose(bool)
protected virtual void Dispose(bool disposing)
Parameters
disposing bool
~RoadFile()
protected ~RoadFile()
GetDefaultUVPointsCount()
public (ulong U, ulong V) GetDefaultUVPointsCount()
Returns
GetNodeDistanceAndUVByTargetNodeCount(ulong)
public (ulong U, ulong V, double Distance) GetNodeDistanceAndUVByTargetNodeCount(ulong dTargetNodeCount)
Parameters
dTargetNodeCount ulong
Returns
(ulong U, ulong V, double Distance)
GetRoadMesh(double, bool, bool, RoadProgressCalllback)
public (Vector[] MeshPoints, int[] Connectivities) GetRoadMesh(double dTargetMeshSize = -1, bool bPreferQuadMesh = false, bool bIncludeElementSizeInConnectivity = false, RoadFile.RoadProgressCalllback progressCalllback = null)
Parameters
dTargetMeshSize double
bPreferQuadMesh bool
bIncludeElementSizeInConnectivity bool
progressCalllback RoadFile.RoadProgressCalllback
Returns
(Vector[] MeshPoints, int[] Connectivities)
GetRoadMeshPointsAndDeltaZsByTargetElementSize(out ulong, out ulong, double, RoadProgressCalllback)
public (Vector[] MeshPoints, double[] DeltaZs) GetRoadMeshPointsAndDeltaZsByTargetElementSize(out ulong nU, out ulong nV, double targetDelta = -1, RoadFile.RoadProgressCalllback progressCalllback = null)
Parameters
nU ulong
nV ulong
targetDelta double
progressCalllback RoadFile.RoadProgressCalllback
Returns
(Vector[] MeshPoints, double[] DeltaZs)
GetRoadMeshPointsAndDeltaZsByUVCount(ref ulong, ref ulong, RoadProgressCalllback)
public (Vector[] MeshPoints, double[] DeltaZs) GetRoadMeshPointsAndDeltaZsByUVCount(ref ulong nU, ref ulong nV, RoadFile.RoadProgressCalllback progressCalllback = null)
Parameters
nU ulong
nV ulong
progressCalllback RoadFile.RoadProgressCalllback
Returns
(Vector[] MeshPoints, double[] DeltaZs)
GetRoadMeshPointsAnsDeltsaZsByTargetNodeCount(out ulong, out ulong, ulong, RoadProgressCalllback)
public (Vector[] MeshPoints, double[] DeltaZs) GetRoadMeshPointsAnsDeltsaZsByTargetNodeCount(out ulong nU, out ulong nV, ulong targetNodeCount = 0, RoadFile.RoadProgressCalllback progressCalllback = null)
Parameters
nU ulong
nV ulong
targetNodeCount ulong
progressCalllback RoadFile.RoadProgressCalllback
Returns
(Vector[] MeshPoints, double[] DeltaZs)
GetRoadMeshPointsByTargetElementSize(out ulong, out ulong, double, RoadProgressCalllback)
public Vector[] GetRoadMeshPointsByTargetElementSize(out ulong nU, out ulong nV, double targetDelta = -1, RoadFile.RoadProgressCalllback progressCalllback = null)
Parameters
nU ulong
nV ulong
targetDelta double
progressCalllback RoadFile.RoadProgressCalllback
Returns
Vector[]
GetRoadMeshPointsByTargetNodeCount(out ulong, out ulong, ulong, RoadProgressCalllback)
public Vector[] GetRoadMeshPointsByTargetNodeCount(out ulong nU, out ulong nV, ulong targetNodeCount = 0, RoadFile.RoadProgressCalllback progressCalllback = null)
Parameters
nU ulong
nV ulong
targetNodeCount ulong
progressCalllback RoadFile.RoadProgressCalllback
Returns
Vector[]
GetRoadMeshPointsByUVCount(ref ulong, ref ulong, RoadProgressCalllback)
public Vector[] GetRoadMeshPointsByUVCount(ref ulong nU, ref ulong nV, RoadFile.RoadProgressCalllback progressCalllback = null)
Parameters
nU ulong
nV ulong
progressCalllback RoadFile.RoadProgressCalllback
Returns
Vector[]
GetRoadMeshWithDeltaZ(double, bool, bool, RoadProgressCalllback)
public (Vector[] MeshPoints, int[] Connectivities, double[] DeltaZs) GetRoadMeshWithDeltaZ(double dTargetMeshSize = -1, bool bPreferQuadMesh = false, bool bIncludeElementSizeInConnectivity = false, RoadFile.RoadProgressCalllback progressCalllback = null)
Parameters
dTargetMeshSize double
bPreferQuadMesh bool
bIncludeElementSizeInConnectivity bool
progressCalllback RoadFile.RoadProgressCalllback
Returns
(Vector[] MeshPoints, int[] Connectivities, double[] DeltaZs)
GetUVPointsCountByTargetPointDistance(double)
public (ulong U, ulong V) GetUVPointsCountByTargetPointDistance(double targetDistanceBetweenPoints)
Parameters
targetDistanceBetweenPoints double
Returns
Initialize(RoadMessageCalllback, MessageSeverity, bool)
public static void Initialize(RoadFile.RoadMessageCalllback callback, MessageSeverity severity, bool bDoNotUseCosinLib = false)
Parameters
callback RoadFile.RoadMessageCalllback
severity MessageSeverity
bDoNotUseCosinLib bool
Open(string, double)
public static RoadFile Open(string pathRoadFile, double dLengthFactor = 1)
Parameters
pathRoadFile string
dLengthFactor double
Returns
SetCriLibPath(string)
public static void SetCriLibPath(string pathLibCri)
Parameters
pathLibCri string
Uninitialize()
public static void Uninitialize()