Class BodyHelper
Last update: 16.07.2025Namespace: VM.Managed.DAFUL.MeshFree
Assembly: VMDMeshFree.dll
This class is to represent the meshfree body helper.
public static class BodyHelper
Inheritance
Extension Methods
LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType),
LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType),
LinkPropertyItemCache.GetLinkedObjects
Methods
CreateGINFFileV3_2(Body, string, string, AttributeFacetRefinementBase, ConvertFactor, uint, string, GeometryType, OutputType, ref MeshFreeMeshType)
Creates the GINF file V3_2.
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
The STR mesher path.
strMeshFreePrePath string
The STR mesh free pre path.
attrGeomOutputProp AttributeFacetRefinementBase
The attr geom output prop.
factor Unit.ConvertFactor
The factor.
nLevel uint
The n level.
strGINFPath string
The STR GINF path.
geomType GeometryType
Type of the geom.
outputType OutputType
Type of the output.
resMeshType MeshFreeMeshType
Type of the res mesh.
Returns
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.
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
The STR mesher path.
strMeshFreePrePath string
The STR mesh free pre path.
attrGeomOutputProp AttributeFacetRefinementBase
The attr geom output prop.
factor Unit.ConvertFactor
The factor.
nLevel uint
The n level.
bUserDefinedDistanceFlag bool
The user defined distance flag.
vecUserDefinedDistance VectorBase
The user defined distance value.
strGINFPath string
The STR GINF path.
geomType GeometryType
Type of the geom.
outputType OutputType
Type of the output.
resMeshType MeshFreeMeshType
Type of the res mesh.
aryPosTria VectorBase[]
The ary pos tria.
aryConTria uint[]
The ary con tria.
aryPosTetra VectorBase[]
The ary pos tetra.
aryConTetra uint[]
The ary con tetra.
Returns
CreateGINFFileV3_2(IAttributeContainer)
Generate GINF File for Solid Body
public static bool CreateGINFFileV3_2(this IAttributeContainer container)
Parameters
container IAttributeContainer
Returns
Whether it's successful.
CreateGINFFileV3_2(IAttributeContainer, string)
Creates the GINF file V3_2.
public static bool CreateGINFFileV3_2(this IAttributeContainer container, string strGINFPath)
Parameters
container IAttributeContainer
The container.
strGINFPath string
The STR GINF path.
Returns
CreateGINFFileV3_2(IAttributeContainer, string, VectorBase[], uint[], VectorBase[], uint[])
Creates the GINF file V3_2.
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
The STR GINF path.
aryPosTria VectorBase[]
The predefined tria postion.
aryConTria uint[]
The predefined tria connection.
aryPosTetra VectorBase[]
The predefined tetra postion.
aryConTetra uint[]
The predefined tetra connection.
Returns
GenerateMeshInfo(IAttributeContainer, ref MeshFreeMeshType, ref VectorBase[], ref uint[], ref VectorBase[], ref uint[], bool)
Generates the mesh info.
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[]
The ary con tria.
aryPosTetra VectorBase[]
The ary pos tetra.
aryConTetra uint[]
The ary con tetra.
bUseDSDL bool
if set to true [b use DSDL].
GetDefaultGINFPath(string, ObjectBase)
Get default GINF name.
public static string GetDefaultGINFPath(string strBaseDir, ObjectBase objBody)
Parameters
strBaseDir string
The base directory.
objBody ObjectBase
The body.
Returns
Default GINF name.
GetMeshFreeDefaultMaxFacetSize(IAttributeContainer)
Get a default maximum facet size for MeshFree
public static double GetMeshFreeDefaultMaxFacetSize(this IAttributeContainer container)
Parameters
container IAttributeContainer
Returns
A default maximum facet size
UpdateMeshFreeNodePropertyAndMaxFacetSize(IAttributeContainer)
Updates the size of the mesh free node property and maximum facet.
public static bool UpdateMeshFreeNodePropertyAndMaxFacetSize(this IAttributeContainer container)
Parameters
container IAttributeContainer
The container.
Returns
Exceptions
The meshfree property is null.