    

 ## On this page

  

 

 # Class BodyHelper

 Last update: 16.07.2025 

Namespace: [VM.Managed.DAFUL.MeshFree](VM.Managed.DAFUL.MeshFree.md)  
Assembly: VMDMeshFree.dll

This class is to represent the meshfree body helper.

```csharp
public static class BodyHelper

```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ← [BodyHelper](VM.Managed.DAFUL.MeshFree.BodyHelper.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

### CreateGINFFileV3\_2(Body, string, string, AttributeFacetRefinementBase, ConvertFactor, uint, string, GeometryType, OutputType, ref MeshFreeMeshType)

Creates the GINF file V3\_2.

```csharp
public static bool CreateGINFFileV3_2(this Body body, string strMesherPath, string strMeshFreePrePath, AttributeFacetRefinementBase attrGeomOutputProp, Unit.ConvertFactor factor, uint nLevel, string strGINFPath, GeometryType geomType, OutputType outputType, ref MeshFreeMeshType resMeshType)

```

#### Parameters

`body` Body

The body.

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

The STR mesher path.

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

The STR mesh free pre path.

`attrGeomOutputProp` AttributeFacetRefinementBase

The attr geom output prop.

`factor` Unit.ConvertFactor

The factor.

`nLevel` [uint](https://learn.microsoft.com/dotnet/api/system.uint32)

The n level.

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

The STR GINF path.

`geomType` [GeometryType](VM.Managed.DAFUL.MeshFree.GeometryType.md)

Type of the geom.

`outputType` [OutputType](VM.Managed.DAFUL.MeshFree.OutputType.md)

Type of the output.

`resMeshType` MeshFreeMeshType

Type of the res mesh.

#### Returns

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

### CreateGINFFileV3\_2(Body, string, string, AttributeFacetRefinementBase, ConvertFactor, uint, bool, VectorBase, string, GeometryType, OutputType, ref MeshFreeMeshType, ref VectorBase\[\], ref uint\[\], ref VectorBase\[\], ref uint\[\])

Creates the GINF file V3\_2.

```csharp
public static bool CreateGINFFileV3_2(this Body body, string strMesherPath, string strMeshFreePrePath, AttributeFacetRefinementBase attrGeomOutputProp, Unit.ConvertFactor factor, uint nLevel, bool bUserDefinedDistanceFlag, VectorBase vecUserDefinedDistance, string strGINFPath, GeometryType geomType, OutputType outputType, ref MeshFreeMeshType resMeshType, ref VectorBase[] aryPosTria, ref uint[] aryConTria, ref VectorBase[] aryPosTetra, ref uint[] aryConTetra)

```

#### Parameters

`body` Body

The body.

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

The STR mesher path.

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

The STR mesh free pre path.

`attrGeomOutputProp` AttributeFacetRefinementBase

The attr geom output prop.

`factor` Unit.ConvertFactor

The factor.

`nLevel` [uint](https://learn.microsoft.com/dotnet/api/system.uint32)

The n level.

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

The user defined distance flag.

`vecUserDefinedDistance` VectorBase

The user defined distance value.

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

The STR GINF path.

`geomType` [GeometryType](VM.Managed.DAFUL.MeshFree.GeometryType.md)

Type of the geom.

`outputType` [OutputType](VM.Managed.DAFUL.MeshFree.OutputType.md)

Type of the output.

`resMeshType` MeshFreeMeshType

Type of the res mesh.

`aryPosTria` VectorBase\[\]

The ary pos tria.

`aryConTria` [uint](https://learn.microsoft.com/dotnet/api/system.uint32)\[\]

The ary con tria.

`aryPosTetra` VectorBase\[\]

The ary pos tetra.

`aryConTetra` [uint](https://learn.microsoft.com/dotnet/api/system.uint32)\[\]

The ary con tetra.

#### Returns

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

### CreateGINFFileV3\_2(IAttributeContainer)

Generate GINF File for Solid Body

```csharp
public static bool CreateGINFFileV3_2(this IAttributeContainer container)

```

#### Parameters

`container` IAttributeContainer

#### Returns

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

Whether it's successful.

### CreateGINFFileV3\_2(IAttributeContainer, string)

Creates the GINF file V3\_2.

```csharp
public static bool CreateGINFFileV3_2(this IAttributeContainer container, string strGINFPath)

```

#### Parameters

`container` IAttributeContainer

The container.

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

The STR GINF path.

#### Returns

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

### CreateGINFFileV3\_2(IAttributeContainer, string, VectorBase\[\], uint\[\], VectorBase\[\], uint\[\])

Creates the GINF file V3\_2.

```csharp
public static bool CreateGINFFileV3_2(this IAttributeContainer container, string strGINFPath, VectorBase[] aryPosTria, uint[] aryConTria, VectorBase[] aryPosTetra, uint[] aryConTetra)

```

#### Parameters

`container` IAttributeContainer

The container.

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

The STR GINF path.

`aryPosTria` VectorBase\[\]

The predefined tria postion.

`aryConTria` [uint](https://learn.microsoft.com/dotnet/api/system.uint32)\[\]

The predefined tria connection.

`aryPosTetra` VectorBase\[\]

The predefined tetra postion.

`aryConTetra` [uint](https://learn.microsoft.com/dotnet/api/system.uint32)\[\]

The predefined tetra connection.

#### Returns

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

### GenerateMeshInfo(IAttributeContainer, ref MeshFreeMeshType, ref VectorBase\[\], ref uint\[\], ref VectorBase\[\], ref uint\[\], bool)

Generates the mesh info.

```csharp
public static void GenerateMeshInfo(this IAttributeContainer container, ref MeshFreeMeshType resMeshType, ref VectorBase[] aryPosTria, ref uint[] aryConTria, ref VectorBase[] aryPosTetra, ref uint[] aryConTetra, bool bUseDSDL)

```

#### Parameters

`container` IAttributeContainer

The container.

`resMeshType` MeshFreeMeshType

Type of the res mesh.

`aryPosTria` VectorBase\[\]

The ary pos tria.

`aryConTria` [uint](https://learn.microsoft.com/dotnet/api/system.uint32)\[\]

The ary con tria.

`aryPosTetra` VectorBase\[\]

The ary pos tetra.

`aryConTetra` [uint](https://learn.microsoft.com/dotnet/api/system.uint32)\[\]

The ary con tetra.

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

if set to `true` \[b use DSDL\].

### GetDefaultGINFPath(string, ObjectBase)

Get default GINF name.

```csharp
public static string GetDefaultGINFPath(string strBaseDir, ObjectBase objBody)

```

#### Parameters

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

The base directory.

`objBody` ObjectBase

The body.

#### Returns

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

Default GINF name.

### GetMeshFreeDefaultMaxFacetSize(IAttributeContainer)

Get a default maximum facet size for MeshFree

```csharp
public static double GetMeshFreeDefaultMaxFacetSize(this IAttributeContainer container)

```

#### Parameters

`container` IAttributeContainer

#### Returns

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

A default maximum facet size

### UpdateMeshFreeNodePropertyAndMaxFacetSize(IAttributeContainer)

Updates the size of the mesh free node property and maximum facet.

```csharp
public static bool UpdateMeshFreeNodePropertyAndMaxFacetSize(this IAttributeContainer container)

```

#### Parameters

`container` IAttributeContainer

The container.

#### Returns

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

#### Exceptions

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

The meshfree property is null.