Skip to main content

Motion Standalone Preprocessor C# library 2024 R2

Class RoadFile

Last update: 16.07.2025

Namespace: VM.Models.Road
Assembly: VM.Models.Road.dll

public class RoadFile

Inheritance

object ← RoadFile

Extension Methods

LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)

Properties

DefaultUIncrement

public double DefaultUIncrement { get; }

Property Value

double

DefaultVIncrement

public double DefaultVIncrement { get; }

Property Value

double

NumUPoints

public ulong NumUPoints { get; }

Property Value

ulong

NumVPoints

public ulong NumVPoints { get; }

Property Value

ulong

NumberOfNodes

public ulong NumberOfNodes { get; }

Property Value

ulong

NumberOfQuadElements

public ulong NumberOfQuadElements { get; }

Property Value

ulong

NumberOfTriElements

public ulong NumberOfTriElements { get; }

Property Value

ulong

RoadLength

public double RoadLength { get; }

Property Value

double

Type

public RoadType Type { get; }

Property Value

RoadType

UEnd

public double UEnd { get; }

Property Value

double

UStart

public double UStart { get; }

Property Value

double

VEnd

public double VEnd { get; }

Property Value

double

VStart

public double VStart { get; }

Property Value

double

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

(ulong U, ulong V)

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

(ulong U, ulong V)

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

RoadFile

SetCriLibPath(string)

public static void SetCriLibPath(string pathLibCri)

Parameters

pathLibCri string

Uninitialize()

public static void Uninitialize()

Connect with Ansys