> ## 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 ConnectivityGenerator

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 static class ConnectivityGenerator
```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[ConnectivityGenerator](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Road.ConnectivityGenerator.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_)

## Methods

### GenerateQuadConnectivity(ulong, ulong, bool)

```csharp theme={null}
public static int[] GenerateQuadConnectivity(ulong nU, ulong nV, bool includeConnectivityCount = false)
```

#### Parameters

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

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

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

#### Returns

[int](https://learn.microsoft.com/dotnet/api/system.int32)\[]

### GenerateTriangleConnectivity(ulong, ulong, bool)

```csharp theme={null}
public static int[] GenerateTriangleConnectivity(ulong nU, ulong nV, bool includeConnectivityCount = false)
```

#### Parameters

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

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

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

#### Returns

[int](https://learn.microsoft.com/dotnet/api/system.int32)\[]

### GetQuadConnectivityCountForGivenTargetRoadLength(ulong, ulong, double, double, bool)

```csharp theme={null}
public static ulong GetQuadConnectivityCountForGivenTargetRoadLength(ulong nU, ulong nV, double dRoadLength, double dTargetLength, bool bIncludeConnectivityCount = false)
```

#### Parameters

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

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

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

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

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

#### Returns

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

### GetTriangleConnectivityCountForGivenTargetRoadLength(ulong, ulong, double, double, bool)

```csharp theme={null}
public static ulong GetTriangleConnectivityCountForGivenTargetRoadLength(ulong nU, ulong nV, double dRoadLength, double dTargetLength, bool bIncludeConnectivityCount = false)
```

#### Parameters

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

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

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

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

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

#### Returns

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