Skip to main content

Motion Standalone Preprocessor C# library 2025 R2

Class Mesh

Last update: 16.07.2025

Namespace: VM.Managed.DAFUL.FE
Assembly: VMFE.dll

This class is to represent the mesh.

public class Mesh : FEObject, IObservableObject, IDisposableObject, ILinkable, IObjectBase, IObject, IEventProvider, IHasKeyObject, ILinkContainerEvent, IVerifiable, IHistoryObjectSerializable, IAttributeContainer, IContainer, ILinkContainer, IOwned, IHasID, INamed, INavigatorItem, IReferencable, IVisible, IDraw, IDrawIcon, IHasModal, IModalBody, IBodyAnalysisType, IBody, IHasSubChangableEntity, IMesh

Inheritance

object ← ObservableObject ← LinkableBase ← ObjectBase ← Object ← ContainerObjectFEObjectMesh

Derived

MeshReader

Implements

IObservableObject, IDisposableObject, ILinkable, IObjectBase, IObject, IEventProvider, IHasKeyObject, ILinkContainerEvent, IVerifiable, IHistoryObjectSerializable, IAttributeContainer, IContainer, ILinkContainer, IOwned, IHasID, INamed, INavigatorItem, IReferencable, IVisible, IDraw, IDrawIcon, IHasModal, IModalBody, IBodyAnalysisType, IBody, IHasSubChangableEntity, IMesh

Inherited Members

ContainerObject.Find(string), ContainerObject.FindLocal(string), ContainerObject.GetUnnamedObjectName(object), ContainerObject.GetNewEntityName(string), ContainerObject.GetNewEntityName(string, bool, int), ContainerObject.GetNewEntityName(string, bool, int, int), Object.GetKey(), Object.Initialize(Unit.ConvertFactor), Object.SetIconColor(Canvas), Object.OnDeserialization(object), Object.CustomGetObjectData(SerializationInfo, StreamingContext), Object.RollbackEvent(), Object.OnDeserializedCore(object), Object.Key, Object.UntypedEventCore, Object.EventCore, Object.Attributes, ObjectBase.ReplaceEventCore(ObjectEventCore), ObjectBase.SetModifiedCore(ModifiedResult.ModifiedType), ObjectBase.AddPostDeserialize(StreamingContext), ObjectBase.LinkAddedToDocumentCore(IOwned, bool), ObjectBase.SetModified(ModifiedResult.ModifiedType), ObjectBase.SetModified(), ObjectBase.SetModified(ModifiedResult.ModifiedType, IDocument), ObjectBase.DestroyObject(object, LinkEventArgs), ObjectBase.DestroyObject(DestroyEventArgs), ObjectBase.DestroyObject(), ObjectBase.Initialize(Unit.ConvertFactor), ObjectBase.FixUp(ObjectBase), ObjectBase.DoWorkAfterUpdateContents(), ObjectBase.SetOldNameWithNewEntity(ObjectBase, ObjectBase), ObjectBase.SetIconColor(Canvas), ObjectBase.RemoveFromCreatedList(), ObjectBase.PostAddToDocument(), ObjectBase.PostRemoveFromDocument(Document), ObjectBase.GetArgumentList(LinkedList), ObjectBase.ResetInvalidEntity(), ObjectBase.OnDeserialization(object), ObjectBase.IsSerializableEvent(Delegate), ObjectBase.CustomGetObjectData(SerializationInfo, StreamingContext), ObjectBase.CheckAndUpdateLink(HashSet), ObjectBase.Verify(VerifiedResult), ObjectBase.ConnectProxy(), ObjectBase.RollbackEvent(), ObjectBase.LinkRequestUpdating(object, LinkEventArgs), ObjectBase.LinkRequestUpdate(object, LinkEventArgs), ObjectBase.LinkRequestDestroying(object, LinkEventArgs), ObjectBase.LinkRequestDestroy(object, LinkEventArgs), ObjectBase.LinkAddedToDocument(object, AddToDocEventArgs), ObjectBase.LinkRemovedFromDocument(object, RemoveFromDocEventArgs), ObjectBase.DisposeManagedResources(), ObjectBase.GetDestroyEventExtraData(), ObjectBase.OnLinkReserved(ILink, object, EventArgs), ObjectBase.CreateEntityWhenUpdateContents(Action), ObjectBase.GetObjectByKey(UIntPtr), ObjectBase.FindObjectOnXmlDeserialize(string), ObjectBase.UpdateContents(XmlReader, ObjectBase, string), ObjectBase.UpdateContents(XmlReader, ObjectBase), ObjectBase.UpdateContents(string, string), ObjectBase.UpdateContents(string), ObjectBase.SetFlagWhenXMLFile(string, bool), ObjectBase.IsEqualArray(T[], T[]), ObjectBase.IsEqualList(List, List), ObjectBase.SetContainer(IOwned, bool), ObjectBase.GetTargetListForUpdate(), ObjectBase.SkipUpdateObjectImpl(), ObjectBase.raise_OnUpdating(object, LinkEventArgs), ObjectBase.raise_OnUpdate(object, LinkEventArgs), ObjectBase.raise_OnDestroying(object, LinkEventArgs), ObjectBase.raise_OnDestroy(object, LinkEventArgs), ObjectBase.raise_Destroying(object, Identifier), ObjectBase.raise_OnAdded(object, AddToDocEventArgs), ObjectBase.raise_OnRemoved(object, RemoveFromDocEventArgs), ObjectBase.raise_OnContentsUpdated(object, EventArgs), ObjectBase.Dispose(bool), ObjectBase.SkipModified, ObjectBase.ClearChildInfoBeforeDeserialize, ObjectBase.KeyImpl, ObjectBase.ID, ObjectBase.TopologyEntityTypeName, ObjectBase.ObjectStateForCircularError, ObjectBase.ObjectState, ObjectBase.IsChildExternable, ObjectBase.IsExternable, ObjectBase.Container, ObjectBase.Owner, ObjectBase.Document, ObjectBase.UntypedEventCore, ObjectBase.KernelKey, ObjectBase.Key, ObjectBase.OnContentsUpdated, ObjectBase.OnRemoved, ObjectBase.OnAdded, ObjectBase.Destroying, ObjectBase.OnDestroy, ObjectBase.OnDestroying, ObjectBase.OnUpdate, ObjectBase.OnUpdating, LinkableBase.OnDeserialization(object), ObservableObject.Dispose(), ObservableObject.RaisePropertyChanged(string), ObservableObject.RaisePropertyChanged(string, object, object), ObservableObject.Dispose(bool), ObservableObject.DisposeManagedResources(), ObservableObject.DisposeUnmanagedResources(), ObservableObject.IsDisposed, ObservableObject.TryDisposing, ObservableObject.Disposed, ObservableObject.Disposing, ObservableObject.PropertyChanged

Extension Methods

LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects(object, LinkPropertyType)

Constructors

Mesh()

Initializes a new instance of the class.

public Mesh()

Fields

g_dicMeta

Dictionary for Meta and MetaInfr.

public static Dictionary<mesh mesh.metainfo> g_dicMeta

Field Value

DictionaryMesh.Meta, Mesh.MetaInfo&gt;

Properties

AnalysisType

Gets or sets the type of body.

BodyAnalysisType AnalysisType { get; set; }

Property Value

BodyAnalysisType

BodyType

Gets or sets the body type.

[Obsolete]
public FlexibleBodyType BodyType { get; set; }

Property Value

FlexibleBodyType

CanSwitchNodal

Gets or sets whether the switch is available with a nodal.

public bool CanSwitchNodal { get; set; }

Property Value

bool

Color

Gets or sets the color.

public Color Color { get; set; }

Property Value

Color

ConvertUnitLength

Gets the length of converted unit.

public double ConvertUnitLength { get; }

Property Value

double

Elements[ElementType]

Gets element container form element type.

public Mesh.ElementContainer Elements[ElementType type] { get; }

Property Value

Mesh.ElementContainer

FEMass

Gets or sets the rigid body elements.

public NamedObjectDictionary<fmassbase> FEMass { get; set; }

Property Value

NamedObjectDictionaryFMassBase&gt;

FullName

Gets the full name.

public virtual string FullName { get; }

Property Value

string

IsHide

Gets or sets a value indicating whether this instance is hide.

bool IsHide { get; set; }

Property Value

bool

IsModalBody

Gets a value indicating whether is modal body.

public bool IsModalBody { get; }

Property Value

bool

IsVisible

Gets or sets a value indicating whether object is visible.

bool IsVisible { get; set; }

Property Value

bool

Layer

Gets or sets the layer.

Layer Layer { get; set; }

Property Value

Layer

Markers

Gets or sets markers.

public NamedObjectDictionary<markeronnode> Markers { get; set; }

Property Value

NamedObjectDictionaryMarkerOnNode&gt;

MassCenter

Gets the mass center.

public Vector MassCenter { get; }

Property Value

Vector

MassValue

Gets the mass.

public double MassValue { get; }

Property Value

double

Materials

Gets the material container.

public List<imaterial> Materials { get; }

Property Value

List

ModalANSYSFilter

public static string ModalANSYSFilter { get; }

Property Value

string

ModalFileAbsolutePath

Gets the absolute file path for modal.

public string ModalFileAbsolutePath { get; }

Property Value

string

ModalFileRelativePath

Gets the relative file path for modal.

public string ModalFileRelativePath { get; }

Property Value

string

ModalInertia

Gets the moment of inertia value for modal.

public _MomentOfInertia ModalInertia { get; }

Property Value

_MomentOfInertia

ModalMass

Gets the mass for modal.

public double ModalMass { get; }

Property Value

double

ModalMassCenter

Gets the mass center for modal.

public Vector ModalMassCenter { get; }

Property Value

Vector

ModalNASTRANFilter

public static string ModalNASTRANFilter { get; }

Property Value

string

ModalReferencePosition

Gets or sets the modal reference position.

public PointBase ModalReferencePosition { get; set; }

Property Value

PointBase

ModalUserDefinedFilter

public static string ModalUserDefinedFilter { get; }

Property Value

string

ModeInterfacePoints

Gets or sets the interface points.

public ModeInterfacePoint[] ModeInterfacePoints { get; set; }

Property Value

ModeInterfacePoint[]

ModeMasterPoints

Gets or sets the masterpoints.

public ModeMasterPoint[] ModeMasterPoints { get; set; }

Property Value

ModeMasterPoint[]

Modes

Gets or sets the modes.

public Mode[] Modes { get; set; }

Property Value

Mode[]

MomentOfInertiaValue

Gets the moment of inertia.

public _MomentOfInertia MomentOfInertiaValue { get; }

Property Value

_MomentOfInertia

Name

Gets or sets the name.

public virtual string Name { get; set; }

Property Value

string

NodalFilter

public static string NodalFilter { get; }

Property Value

string

Nodes

Gets node container.

public Mesh.NodeContainer Nodes { get; }

Property Value

Mesh.NodeContainer

NonSymmetricName

Gets the name of the non symmetric.

public virtual string NonSymmetricName { get; }

Property Value

string

Properties

Gets or sets the properties.

public Properties Properties { get; set; }

Property Value

Properties

RigidBodyElements

Gets or sets the rigid body elements.

public NamedObjectDictionary<frbe> RigidBodyElements { get; set; }

Property Value

NamedObjectDictionaryFRBE&gt;

SelectedModeCount

Gets the selected mode's count.

public int SelectedModeCount { get; }

Property Value

int

Sets

Gets or sets the sets.

public Sets Sets { get; set; }

Property Value

Sets

StartModeName

Gets the mode name at first.

public string StartModeName { get; }

Property Value

string

TypeOfDFMF

public Mesh.DFMFType TypeOfDFMF { get; }

Property Value

Mesh.DFMFType

UseDFMF

public bool UseDFMF { get; }

Property Value

bool

UseModalReferencePosition

Gets or sets the use modal reference position.

public bool UseModalReferencePosition { get; set; }

Property Value

bool

_Color

Gets or sets the color.

public int _Color { get; set; }

Property Value

int

Methods

Add(ObjectBase)

classify the type and Add.

public void Add(ObjectBase ob)

Parameters

ob ObjectBase

The object.

AddDesignPointForInterfaceNode(VectorBase)

public DesignPoint AddDesignPointForInterfaceNode(VectorBase vecPos)

Parameters

vecPos VectorBase

Returns

DesignPoint

CalcMassProperty()

Calculate mass property.

public void CalcMassProperty()

CalcMassProperty(list_VM_VECTOR,std::allocator_VM_VECTOR&gt; &gt;*, double*, _VM_VECTOR*, double*, double*, double*, double*, double*, double*)

public void CalcMassProperty(list_VM_VECTOR,std::allocator_VM_VECTOR&gt; &gt;* lstVecNodePosition, double* dMass, _VM_VECTOR* vecMassCenter, double* dJxx, double* dJyy, double* dJzz, double* dJxy, double* dJyz, double* dJxz)

Parameters

lstVecNodePosition list_VM_VECTOR,std::allocator_VM_VECTOR&gt; &gt;*

dMass double*

vecMassCenter _VM_VECTOR*

dJxx double*

dJyy double*

dJzz double*

dJxy double*

dJyz double*

dJxz double*

CalcMassProperty(double*, _VM_VECTOR*, double*, double*, double*, double*, double*, double*)

public void CalcMassProperty(double* dMass, _VM_VECTOR* vecMassCenter, double* dJxx, double* dJyy, double* dJzz, double* dJxy, double* dJyz, double* dJxz)

Parameters

dMass double*

vecMassCenter _VM_VECTOR*

dJxx double*

dJyy double*

dJzz double*

dJxy double*

dJyz double*

dJxz double*

ConnectProxy()

protected override void ConnectProxy()

ConvertShellToSolid(ShellThicknessType, double)

public bool ConvertShellToSolid(Mesh.ShellThicknessType typeOfThickness, double dThickness)

Parameters

typeOfThickness Mesh.ShellThicknessType

dThickness double

Returns

bool

Draw(Canvas)

Draws the icon.

public virtual void Draw(Canvas canvas)

Parameters

canvas Canvas

The canvas has icon information.

FindLocal(string)

Finds an object that matches a specified name in local.

public override IObjectBase FindLocal(string strName)

Parameters

strName string

Name to search for.

Returns

IObjectBase

An object that matches a specified name.

FindPointMass(FRBE)

Finds point mass with rbe.

public PointMass FindPointMass(FRBE rbe)

Parameters

rbe FRBE

The rigid body element.

Returns

PointMass

FixUp(ObjectBase)

Before destroy the old object, perform a work.

public override bool FixUp(ObjectBase ob)

Parameters

ob ObjectBase

The old object.

Returns

bool

true if success; otherwise, false.

GetAllNodePosition(ref Vector[])

Gets the node position.

public void GetAllNodePosition(ref Vector[] arVec)

Parameters

arVec Vector[]

The position array.

GetAllNodePosition(ref VectorBase[])

Gets the node position.

public void GetAllNodePosition(ref VectorBase[] arVec)

Parameters

arVec VectorBase[]

The position array.

GetEdgesWithNodes(uint[])

public Tuple<uint uint>[] GetEdgesWithNodes(uint[] arNodeIndex)

Parameters

arNodeIndex uint[]

Returns

Tupleuint, uint&gt;[]

GetElementID(ElementType, uint)

Gets element id.

public int GetElementID(ElementType type, uint nIndex)

Parameters

type ElementType

The element type.

nIndex uint

The element index.

Returns

int

GetMaterials()

Gets the materials.

public IEnumerable<imaterial> GetMaterials()

Returns

IEnumerable

GetNodeID(uint)

Gets the node ID.

public uint GetNodeID(uint nIndex)

Parameters

nIndex uint

The node index.

Returns

uint

GetNodeIndex(uint)

Gets the node Index.

public uint GetNodeIndex(uint nID)

Parameters

nID uint

The node ID.

Returns

uint

GetNodeInfoForCalcMass(uint, double, ref VectorBase, ref _MomentOfInertia, ref double, ref uint)

Gets the node information for [mass calculation].

public void GetNodeInfoForCalcMass(uint nIndex, double dConvertUnitLength, ref VectorBase vecPosition, ref _MomentOfInertia inertia, ref double dMass, ref uint nID)

Parameters

nIndex uint

The node index.

dConvertUnitLength double

The length of converted unit.

vecPosition VectorBase

The specified position of node.

inertia _MomentOfInertia

The specified inertia of node.

dMass double

The specified mass of node.

nID uint

The specified id of node.

GetNodePosition(uint)

public Vector GetNodePosition(uint nIndex)

Parameters

nIndex uint

Returns

Vector

GetOuterNodes(IEnumerable)

public IEnumerable<uint> GetOuterNodes(IEnumerable<uint> lstNodeIndex)

Parameters

lstNodeIndex IEnumerableuint&gt;

Returns

IEnumerableuint&gt;

GetPropertyNameToOuterNodes()

public Dictionary<string>&gt; GetPropertyNameToOuterNodes()

Returns

Dictionarystring, Listuint[]&gt;&gt;

GetSubChangableEntityImpl(Dictionary)

Gets the sub changable entity.

void GetSubChangableEntityImpl(Dictionary<string objectbase> dicObj)

Parameters

dicObj Dictionarystring, ObjectBase&gt;

The object dictionary.

Initialize(ConvertFactor)

Initializes member through unit convert factor.

public override void Initialize(Unit.ConvertFactor A_0)

Parameters

A_0 Unit.ConvertFactor

IsDeleteMaterial(IMaterial)

Determines whether is [delete material] [the specified material].

public bool IsDeleteMaterial(IMaterial mat)

Parameters

mat IMaterial

The material.

Returns

bool

true if is [delete material] [the specified material]; otherwise, false.

IsDeletePatchSet(SetPatchBase)

Determines whether is [delete setpatch] [the specified setpatch].

public bool IsDeletePatchSet(SetPatchBase setPatch)

Parameters

setPatch SetPatchBase

The setpatch.

Returns

bool

true if is [delete setpatch] [the specified setpatch]; otherwise, false.

IsOnlyLinearMaterial()

Determines whether refer linear material only.

public bool IsOnlyLinearMaterial()

Returns

bool

true if this instance refer only linear material; otherwise, false.

LinkRequestDestroy(object, LinkEventArgs)

Request for destroy the linked object.

protected override void LinkRequestDestroy(object objNotifier, LinkEventArgs arg)

Parameters

objNotifier object

The linked object.

arg LinkEventArgs

The instance containing the event data.

LinkRequestUpdate(object, LinkEventArgs)

Request for update the linked object.

protected override void LinkRequestUpdate(object objNotifier, LinkEventArgs arg)

Parameters

objNotifier object

The linked object.

arg LinkEventArgs

The instance containing the event data.

OnDeserialization(object)

Called when [deserialization].

protected override void OnDeserialization(object sender)

Parameters

sender object

The sender.

ReDraw()

Redraw.

public virtual void ReDraw()

ReDrawForHistory()

Redraw for undo/redo

void ReDrawForHistory()

SetBodyAnalysisType(BodyAnalysisType)

public void SetBodyAnalysisType(BodyAnalysisType type)

Parameters

type BodyAnalysisType

SkipUpdateObjectImpl()

Skip the object that updated.

public override bool SkipUpdateObjectImpl()

Returns

bool

UpdateMesh()

Update mesh.

public virtual void UpdateMesh()

get_Elements(ElementType)

public Mesh.ElementContainer get_Elements(ElementType type)

Parameters

type ElementType

Returns

Mesh.ElementContainer

Connect with Ansys