> ## 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/lib/VM.Models.Road)\
Assembly: VM.Models.Road.dll

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

#### Inheritance

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

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/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/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/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

### DefaultVIncrement

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

#### Property Value

double

### NumUPoints

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

#### Property Value

ulong

### NumVPoints

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

#### Property Value

ulong

### NumberOfNodes

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

#### Property Value

ulong

### NumberOfQuadElements

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

#### Property Value

ulong

### NumberOfTriElements

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

#### Property Value

ulong

### RoadLength

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

#### Property Value

double

### Type

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

#### Property Value

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

### UEnd

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

#### Property Value

double

### UStart

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

#### Property Value

double

### VEnd

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

#### Property Value

double

### VStart

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

#### Property Value

double

## Methods

### Dispose()

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

### Dispose(bool)

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

#### Parameters

`disposing` bool

### \~RoadFile()

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

### GetDefaultUVPointsCount()

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

#### Returns

(ulong U, ulong V)

### GetNodeDistanceAndUVByTargetNodeCount(ulong)

```csharp theme={null}
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)

```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

`bPreferQuadMesh` bool

`bIncludeElementSizeInConnectivity` bool

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

#### Returns

(Vector\[] MeshPoints, int\[] 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

`nV` ulong

`targetDelta` double

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

#### Returns

(Vector\[] MeshPoints, 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

`nV` ulong

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

#### Returns

(Vector\[] MeshPoints, 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

`nV` ulong

`targetNodeCount` ulong

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

#### Returns

(Vector\[] MeshPoints, 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

`nV` ulong

`targetDelta` double

`progressCalllback` [RoadFile](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Road.RoadFile.md).[RoadProgressCalllback](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/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

`nV` ulong

`targetNodeCount` ulong

`progressCalllback` [RoadFile](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Road.RoadFile.md).[RoadProgressCalllback](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/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

`nV` ulong

`progressCalllback` [RoadFile](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Road.RoadFile.md).[RoadProgressCalllback](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/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

`bPreferQuadMesh` bool

`bIncludeElementSizeInConnectivity` bool

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

#### Returns

(Vector\[] MeshPoints, int\[] Connectivities, double\[] DeltaZs)

### GetUVPointsCountByTargetPointDistance(double)

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

#### Parameters

`targetDistanceBetweenPoints` double

#### Returns

(ulong U, ulong 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/lib/VM.Models.Road.RoadFile.md).[RoadMessageCalllback](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Road.RoadFile.RoadMessageCalllback.md)

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

`bDoNotUseCosinLib` bool

### Open(string, double)

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

#### Parameters

`pathRoadFile` string

`dLengthFactor` double

#### Returns

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

### SetCriLibPath(string)

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

#### Parameters

`pathLibCri` string

### Uninitialize()

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