    

 ## On this page

  

 

 # Class Body

 Last update: 09.03.2026 

<a id="VM_CAD_Kernel_Body"></a>

Namespace: [VM.CAD.Kernel](VM.CAD.Kernel.md)  
Assembly: VM.CAD.Kernel.dll

```csharp
public sealed class Body : Entity, IHasID, IFacetable

```

#### Inheritance

object ← [KernelObject](VM.CAD.Kernel.KernelObject.md) ← [Entity](VM.CAD.Kernel.Entity.md) ← [Body](VM.CAD.Kernel.Body.md)

#### Implements

IHasID, [IFacetable](VM.CAD.Kernel.IFacetable.md)

#### Inherited Members

[Entity.PID](VM.CAD.Kernel.Entity.md#VM_CAD_Kernel_Entity_PID), [KernelObject.Dispose()](VM.CAD.Kernel.KernelObject.md#VM_CAD_Kernel_KernelObject_Dispose), [KernelObject.Key](VM.CAD.Kernel.KernelObject.md#VM_CAD_Kernel_KernelObject_Key)

#### 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_), [IFacetableExtension.SetGeometryOption(IFacetable, string, string, double)](VM.CAD.Kernel.IFacetableExtension.md#VM_CAD_Kernel_IFacetableExtension_SetGeometryOption_VM_CAD_Kernel_IFacetable_System_String_System_String_System_Double_)

## Constructors

### <a id="VM_CAD_Kernel_Body__ctor_System_UIntPtr_"></a> Body(UIntPtr)

```csharp
public Body(UIntPtr key)

```

#### Parameters

`key` UIntPtr

## Methods

### <a id="VM_CAD_Kernel_Body_ClearFacetDictionary"></a> ClearFacetDictionary()

```csharp
public void ClearFacetDictionary()

```

### <a id="VM_CAD_Kernel_Body_GetEdgeKernelProxy_VM_Identifier_System_UIntPtr__"></a> GetEdgeKernelProxy(Identifier, out UIntPtr)

```csharp
public void GetEdgeKernelProxy(Identifier pid, out UIntPtr edgeProxy)

```

#### Parameters

`pid` Identifier

`edgeProxy` UIntPtr

### <a id="VM_CAD_Kernel_Body_GetFaceKernelProxy_VM_Identifier_System_UIntPtr__"></a> GetFaceKernelProxy(Identifier, out UIntPtr)

```csharp
public void GetFaceKernelProxy(Identifier nPID, out UIntPtr faceProxy)

```

#### Parameters

`nPID` Identifier

`faceProxy` UIntPtr

### <a id="VM_CAD_Kernel_Body_GetGeomInfo_System_Double_VM_Vector____System_UInt32____System_Boolean_"></a> GetGeomInfo(double, out Vector\[\], out uint\[\], bool)

```csharp
public bool GetGeomInfo(double lengthFactor, out Vector[] position, out uint[] connectivities, bool bCreateFacetDictionary)

```

#### Parameters

`lengthFactor` double

`position` Vector\[\]

`connectivities` uint\[\]

`bCreateFacetDictionary` bool

#### Returns

bool

### <a id="VM_CAD_Kernel_Body_GetVoidCount"></a> GetVoidCount()

```csharp
public uint GetVoidCount()

```

#### Returns

uint

### <a id="VM_CAD_Kernel_Body_GetVoidPoints_System_Double_System_UInt32__"></a> GetVoidPoints(double, out uint)

```csharp
public Vector[] GetVoidPoints(double offset, out uint countFailed)

```

#### Parameters

`offset` double

`countFailed` uint

#### Returns

Vector\[\]

### <a id="VM_CAD_Kernel_Body_HasDefect_System_Action_System_String__System_Boolean_"></a> HasDefect(Action&lt;string&gt;, bool)

```csharp
public int HasDefect(Action<string> actWriteMessage, bool bDetailedInformation = false)

```

#### Parameters

`actWriteMessage` Action&lt;string&gt;

`bDetailedInformation` bool

#### Returns

int

### <a id="VM_CAD_Kernel_Body_RemoveUnusedPoints_VM_Vector___System_UInt32___"></a> RemoveUnusedPoints(Vector\[\], uint\[\])

```csharp
public void RemoveUnusedPoints(Vector[] aryPosTria, uint[] aryConTria)

```

#### Parameters

`aryPosTria` Vector\[\]

`aryConTria` uint\[\]

### <a id="VM_CAD_Kernel_Body_Repair_VM_CAD_Kernel_SimplifyOption_VM_CAD_Kernel_SimplifyOption_System_Double_System_Action_System_String__System_Boolean_"></a> Repair(SimplifyOption, SimplifyOption, double, Action&lt;string&gt;, bool)

```csharp
public int Repair(SimplifyOption simplifySurface = SimplifyOption.ForceSimplify, SimplifyOption simplifyCurve = SimplifyOption.ForceSimplify, double dDesiredGap = -1, Action<string> actWriteMessage = null, bool bDetailedInformation = false)

```

#### Parameters

`simplifySurface` [SimplifyOption](VM.CAD.Kernel.SimplifyOption.md)

`simplifyCurve` [SimplifyOption](VM.CAD.Kernel.SimplifyOption.md)

`dDesiredGap` double

`actWriteMessage` Action&lt;string&gt;

`bDetailedInformation` bool

#### Returns

int

### <a id="VM_CAD_Kernel_Body_UpdateDisplay"></a> UpdateDisplay()

```csharp
public void UpdateDisplay()

```