    

 ## On this page

  

 

 # Class ConnectivityGenerator

 Last update: 16.07.2025 

Namespace: [VM.Models.Road](VM.Models.Road.md)  
Assembly: VM.Models.Road.dll

```csharp
public static class ConnectivityGenerator

```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ← [ConnectivityGenerator](VM.Models.Road.ConnectivityGenerator.md)

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkProperties_System_Object_VM_Models_Pre_LinkPropertyType_), [LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkPropertiesAndValues_System_Object_VM_Models_Pre_LinkPropertyType_), [LinkPropertyItemCache.GetLinkedObjects&lt;T&gt;(object, LinkPropertyType)](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
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
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
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
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)