> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Class RoadFile

Namespace: [VM.Models.Road](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Road)\
Assembly: VM.Models.Road.dll

```csharp theme={null}
public class RoadFile
```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[RoadFile](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Road.RoadFile.md)

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkProperties_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkPropertiesAndValues_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkedObjects\<T>(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Properties

### DefaultUIncrement

```csharp theme={null}
public double DefaultUIncrement { get; }
```

#### Property Value

[double](https://learn.microsoft.com/dotnet/api/system.double)

### DefaultVIncrement

```csharp theme={null}
public double DefaultVIncrement { get; }
```

#### Property Value

[double](https://learn.microsoft.com/dotnet/api/system.double)

### NumUPoints

```csharp theme={null}
public ulong NumUPoints { get; }
```

#### Property Value

[ulong](https://learn.microsoft.com/dotnet/api/system.uint64)

### NumVPoints

```csharp theme={null}
public ulong NumVPoints { get; }
```

#### Property Value

[ulong](https://learn.microsoft.com/dotnet/api/system.uint64)

### NumberOfNodes

```csharp theme={null}
public ulong NumberOfNodes { get; }
```

#### Property Value

[ulong](https://learn.microsoft.com/dotnet/api/system.uint64)

### NumberOfQuadElements

```csharp theme={null}
public ulong NumberOfQuadElements { get; }
```

#### Property Value

[ulong](https://learn.microsoft.com/dotnet/api/system.uint64)

### NumberOfTriElements

```csharp theme={null}
public ulong NumberOfTriElements { get; }
```

#### Property Value

[ulong](https://learn.microsoft.com/dotnet/api/system.uint64)

### RoadLength

```csharp theme={null}
public double RoadLength { get; }
```

#### Property Value

[double](https://learn.microsoft.com/dotnet/api/system.double)

### Type

```csharp theme={null}
public RoadType Type { get; }
```

#### Property Value

[RoadType](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Road.RoadType.md)

### UEnd

```csharp theme={null}
public double UEnd { get; }
```

#### Property Value

[double](https://learn.microsoft.com/dotnet/api/system.double)

### UStart

```csharp theme={null}
public double UStart { get; }
```

#### Property Value

[double](https://learn.microsoft.com/dotnet/api/system.double)

### VEnd

```csharp theme={null}
public double VEnd { get; }
```

#### Property Value

[double](https://learn.microsoft.com/dotnet/api/system.double)

### VStart

```csharp theme={null}
public double VStart { get; }
```

#### Property Value

[double](https://learn.microsoft.com/dotnet/api/system.double)

## Methods

### Dispose()

```csharp theme={null}
public void Dispose()
```

### Dispose(bool)

```csharp theme={null}
protected virtual void Dispose(bool disposing)
```

#### Parameters

`disposing` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### \~RoadFile()

```csharp theme={null}
protected ~RoadFile()
```

### GetDefaultUVPointsCount()

```csharp theme={null}
public (ulong U, ulong V) GetDefaultUVPointsCount()
```

#### Returns

([ulong](https://learn.microsoft.com/dotnet/api/system.uint64) [U](https://learn.microsoft.com/dotnet/api/system.valuetuple-system.uint64,system.uint64-.u), [ulong](https://learn.microsoft.com/dotnet/api/system.uint64) [V](https://learn.microsoft.com/dotnet/api/system.valuetuple-system.uint64,system.uint64-.v))

### GetNodeDistanceAndUVByTargetNodeCount(ulong)

```csharp theme={null}
public (ulong U, ulong V, double Distance) GetNodeDistanceAndUVByTargetNodeCount(ulong dTargetNodeCount)
```

#### Parameters

`dTargetNodeCount` [ulong](https://learn.microsoft.com/dotnet/api/system.uint64)

#### Returns

([ulong](https://learn.microsoft.com/dotnet/api/system.uint64) [U](https://learn.microsoft.com/dotnet/api/system.valuetuple-system.uint64,system.uint64,system.double-.u), [ulong](https://learn.microsoft.com/dotnet/api/system.uint64) [V](https://learn.microsoft.com/dotnet/api/system.valuetuple-system.uint64,system.uint64,system.double-.v), [double](https://learn.microsoft.com/dotnet/api/system.double) [Distance](https://learn.microsoft.com/dotnet/api/system.valuetuple-system.uint64,system.uint64,system.double-.distance))

### GetRoadMesh(double, bool, bool, RoadProgressCalllback)

```csharp theme={null}
public (Vector[] MeshPoints, int[] Connectivities) GetRoadMesh(double dTargetMeshSize = -1, bool bPreferQuadMesh = false, bool bIncludeElementSizeInConnectivity = false, RoadFile.RoadProgressCalllback progressCalllback = null)
```

#### Parameters

`dTargetMeshSize` [double](https://learn.microsoft.com/dotnet/api/system.double)

`bPreferQuadMesh` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

`bIncludeElementSizeInConnectivity` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

`progressCalllback` [RoadFile](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Road.RoadFile.md).[RoadProgressCalllback](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Road.RoadFile.RoadProgressCalllback.md)

#### Returns

(Vector\[] [MeshPoints](https://learn.microsoft.com/dotnet/api/system.valuetuple-vm.vector\[],system.int32\[]-.meshpoints), [int](https://learn.microsoft.com/dotnet/api/system.int32)\[] [Connectivities](https://learn.microsoft.com/dotnet/api/system.valuetuple-vm.vector\[],system.int32\[]-.connectivities))

### GetRoadMeshPointsAndDeltaZsByTargetElementSize(out ulong, out ulong, double, RoadProgressCalllback)

```csharp theme={null}
public (Vector[] MeshPoints, double[] DeltaZs) GetRoadMeshPointsAndDeltaZsByTargetElementSize(out ulong nU, out ulong nV, double targetDelta = -1, RoadFile.RoadProgressCalllback progressCalllback = null)
```

#### Parameters

`nU` [ulong](https://learn.microsoft.com/dotnet/api/system.uint64)

`nV` [ulong](https://learn.microsoft.com/dotnet/api/system.uint64)

`targetDelta` [double](https://learn.microsoft.com/dotnet/api/system.double)

`progressCalllback` [RoadFile](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Road.RoadFile.md).[RoadProgressCalllback](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Road.RoadFile.RoadProgressCalllback.md)

#### Returns

(Vector\[] [MeshPoints](https://learn.microsoft.com/dotnet/api/system.valuetuple-vm.vector\[],system.double\[]-.meshpoints), [double](https://learn.microsoft.com/dotnet/api/system.double)\[] [DeltaZs](https://learn.microsoft.com/dotnet/api/system.valuetuple-vm.vector\[],system.double\[]-.deltazs))

### GetRoadMeshPointsAndDeltaZsByUVCount(ref ulong, ref ulong, RoadProgressCalllback)

```csharp theme={null}
public (Vector[] MeshPoints, double[] DeltaZs) GetRoadMeshPointsAndDeltaZsByUVCount(ref ulong nU, ref ulong nV, RoadFile.RoadProgressCalllback progressCalllback = null)
```

#### Parameters

`nU` [ulong](https://learn.microsoft.com/dotnet/api/system.uint64)

`nV` [ulong](https://learn.microsoft.com/dotnet/api/system.uint64)

`progressCalllback` [RoadFile](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Road.RoadFile.md).[RoadProgressCalllback](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Road.RoadFile.RoadProgressCalllback.md)

#### Returns

(Vector\[] [MeshPoints](https://learn.microsoft.com/dotnet/api/system.valuetuple-vm.vector\[],system.double\[]-.meshpoints), [double](https://learn.microsoft.com/dotnet/api/system.double)\[] [DeltaZs](https://learn.microsoft.com/dotnet/api/system.valuetuple-vm.vector\[],system.double\[]-.deltazs))

### GetRoadMeshPointsAnsDeltsaZsByTargetNodeCount(out ulong, out ulong, ulong, RoadProgressCalllback)

```csharp theme={null}
public (Vector[] MeshPoints, double[] DeltaZs) GetRoadMeshPointsAnsDeltsaZsByTargetNodeCount(out ulong nU, out ulong nV, ulong targetNodeCount = 0, RoadFile.RoadProgressCalllback progressCalllback = null)
```

#### Parameters

`nU` [ulong](https://learn.microsoft.com/dotnet/api/system.uint64)

`nV` [ulong](https://learn.microsoft.com/dotnet/api/system.uint64)

`targetNodeCount` [ulong](https://learn.microsoft.com/dotnet/api/system.uint64)

`progressCalllback` [RoadFile](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Road.RoadFile.md).[RoadProgressCalllback](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Road.RoadFile.RoadProgressCalllback.md)

#### Returns

(Vector\[] [MeshPoints](https://learn.microsoft.com/dotnet/api/system.valuetuple-vm.vector\[],system.double\[]-.meshpoints), [double](https://learn.microsoft.com/dotnet/api/system.double)\[] [DeltaZs](https://learn.microsoft.com/dotnet/api/system.valuetuple-vm.vector\[],system.double\[]-.deltazs))

### GetRoadMeshPointsByTargetElementSize(out ulong, out ulong, double, RoadProgressCalllback)

```csharp theme={null}
public Vector[] GetRoadMeshPointsByTargetElementSize(out ulong nU, out ulong nV, double targetDelta = -1, RoadFile.RoadProgressCalllback progressCalllback = null)
```

#### Parameters

`nU` [ulong](https://learn.microsoft.com/dotnet/api/system.uint64)

`nV` [ulong](https://learn.microsoft.com/dotnet/api/system.uint64)

`targetDelta` [double](https://learn.microsoft.com/dotnet/api/system.double)

`progressCalllback` [RoadFile](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Road.RoadFile.md).[RoadProgressCalllback](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Road.RoadFile.RoadProgressCalllback.md)

#### Returns

Vector\[]

### GetRoadMeshPointsByTargetNodeCount(out ulong, out ulong, ulong, RoadProgressCalllback)

```csharp theme={null}
public Vector[] GetRoadMeshPointsByTargetNodeCount(out ulong nU, out ulong nV, ulong targetNodeCount = 0, RoadFile.RoadProgressCalllback progressCalllback = null)
```

#### Parameters

`nU` [ulong](https://learn.microsoft.com/dotnet/api/system.uint64)

`nV` [ulong](https://learn.microsoft.com/dotnet/api/system.uint64)

`targetNodeCount` [ulong](https://learn.microsoft.com/dotnet/api/system.uint64)

`progressCalllback` [RoadFile](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Road.RoadFile.md).[RoadProgressCalllback](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Road.RoadFile.RoadProgressCalllback.md)

#### Returns

Vector\[]

### GetRoadMeshPointsByUVCount(ref ulong, ref ulong, RoadProgressCalllback)

```csharp theme={null}
public Vector[] GetRoadMeshPointsByUVCount(ref ulong nU, ref ulong nV, RoadFile.RoadProgressCalllback progressCalllback = null)
```

#### Parameters

`nU` [ulong](https://learn.microsoft.com/dotnet/api/system.uint64)

`nV` [ulong](https://learn.microsoft.com/dotnet/api/system.uint64)

`progressCalllback` [RoadFile](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Road.RoadFile.md).[RoadProgressCalllback](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Road.RoadFile.RoadProgressCalllback.md)

#### Returns

Vector\[]

### GetRoadMeshWithDeltaZ(double, bool, bool, RoadProgressCalllback)

```csharp theme={null}
public (Vector[] MeshPoints, int[] Connectivities, double[] DeltaZs) GetRoadMeshWithDeltaZ(double dTargetMeshSize = -1, bool bPreferQuadMesh = false, bool bIncludeElementSizeInConnectivity = false, RoadFile.RoadProgressCalllback progressCalllback = null)
```

#### Parameters

`dTargetMeshSize` [double](https://learn.microsoft.com/dotnet/api/system.double)

`bPreferQuadMesh` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

`bIncludeElementSizeInConnectivity` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

`progressCalllback` [RoadFile](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Road.RoadFile.md).[RoadProgressCalllback](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Road.RoadFile.RoadProgressCalllback.md)

#### Returns

(Vector\[] [MeshPoints](https://learn.microsoft.com/dotnet/api/system.valuetuple-vm.vector\[],system.int32\[],system.double\[]-.meshpoints), [int](https://learn.microsoft.com/dotnet/api/system.int32)\[] [Connectivities](https://learn.microsoft.com/dotnet/api/system.valuetuple-vm.vector\[],system.int32\[],system.double\[]-.connectivities), [double](https://learn.microsoft.com/dotnet/api/system.double)\[] [DeltaZs](https://learn.microsoft.com/dotnet/api/system.valuetuple-vm.vector\[],system.int32\[],system.double\[]-.deltazs))

### GetUVPointsCountByTargetPointDistance(double)

```csharp theme={null}
public (ulong U, ulong V) GetUVPointsCountByTargetPointDistance(double targetDistanceBetweenPoints)
```

#### Parameters

`targetDistanceBetweenPoints` [double](https://learn.microsoft.com/dotnet/api/system.double)

#### Returns

([ulong](https://learn.microsoft.com/dotnet/api/system.uint64) [U](https://learn.microsoft.com/dotnet/api/system.valuetuple-system.uint64,system.uint64-.u), [ulong](https://learn.microsoft.com/dotnet/api/system.uint64) [V](https://learn.microsoft.com/dotnet/api/system.valuetuple-system.uint64,system.uint64-.v))

### Initialize(RoadMessageCalllback, MessageSeverity, bool)

```csharp theme={null}
public static void Initialize(RoadFile.RoadMessageCalllback callback, MessageSeverity severity, bool bDoNotUseCosinLib = false)
```

#### Parameters

`callback` [RoadFile](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Road.RoadFile.md).[RoadMessageCalllback](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Road.RoadFile.RoadMessageCalllback.md)

`severity` [MessageSeverity](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Road.MessageSeverity.md)

`bDoNotUseCosinLib` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### Open(string, double)

```csharp theme={null}
public static RoadFile Open(string pathRoadFile, double dLengthFactor = 1)
```

#### Parameters

`pathRoadFile` [string](https://learn.microsoft.com/dotnet/api/system.string)

`dLengthFactor` [double](https://learn.microsoft.com/dotnet/api/system.double)

#### Returns

[RoadFile](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Road.RoadFile.md)

### SetCriLibPath(string)

```csharp theme={null}
public static void SetCriLibPath(string pathLibCri)
```

#### Parameters

`pathLibCri` [string](https://learn.microsoft.com/dotnet/api/system.string)

### Uninitialize()

```csharp theme={null}
public static void Uninitialize()
```
