Class Mesh
Last update: 16.07.2025Namespace: 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
Derived
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
Extension Methods
LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType),
LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType),
LinkPropertyItemCache.GetLinkedObjects
Constructors
Mesh()
Initializes a new instance of the
public Mesh()
Fields
g_dicMeta
Dictionary for Meta and MetaInfr.
public static Dictionary<mesh mesh.metainfo> g_dicMeta
Field Value
DictionaryMesh.Meta, Mesh.MetaInfo>
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
CanSwitchNodal
Gets or sets whether the switch is available with a nodal.
public bool CanSwitchNodal { get; set; }
Property Value
Color
Gets or sets the color.
public Color Color { get; set; }
Property Value
ConvertUnitLength
Gets the length of converted unit.
public double ConvertUnitLength { get; }
Property Value
Elements[ElementType]
Gets element container form element type.
public Mesh.ElementContainer Elements[ElementType type] { get; }
Property Value
FEMass
Gets or sets the rigid body elements.
public NamedObjectDictionary<fmassbase> FEMass { get; set; }
Property Value
NamedObjectDictionaryFMassBase>
FullName
Gets the full name.
public virtual string FullName { get; }
Property Value
IsHide
Gets or sets a value indicating whether this instance is hide.
bool IsHide { get; set; }
Property Value
IsModalBody
Gets a value indicating whether is modal body.
public bool IsModalBody { get; }
Property Value
IsVisible
Gets or sets a value indicating whether object is visible.
bool IsVisible { get; set; }
Property Value
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>
MassCenter
Gets the mass center.
public Vector MassCenter { get; }
Property Value
Vector
MassValue
Gets the mass.
public double MassValue { get; }
Property Value
Materials
Gets the material container.
public List<imaterial> Materials { get; }
Property Value
ModalANSYSFilter
public static string ModalANSYSFilter { get; }
Property Value
ModalFileAbsolutePath
Gets the absolute file path for modal.
public string ModalFileAbsolutePath { get; }
Property Value
ModalFileRelativePath
Gets the relative file path for modal.
public string ModalFileRelativePath { get; }
Property Value
ModalInertia
Gets the moment of inertia value for modal.
public _MomentOfInertia ModalInertia { get; }
Property Value
ModalMass
Gets the mass for modal.
public double ModalMass { get; }
Property Value
ModalMassCenter
Gets the mass center for modal.
public Vector ModalMassCenter { get; }
Property Value
Vector
ModalNASTRANFilter
public static string ModalNASTRANFilter { get; }
Property Value
ModalReferencePosition
Gets or sets the modal reference position.
public PointBase ModalReferencePosition { get; set; }
Property Value
PointBase
ModalUserDefinedFilter
public static string ModalUserDefinedFilter { get; }
Property Value
ModeInterfacePoints
Gets or sets the interface points.
public ModeInterfacePoint[] ModeInterfacePoints { get; set; }
Property Value
ModeMasterPoints
Gets or sets the masterpoints.
public ModeMasterPoint[] ModeMasterPoints { get; set; }
Property Value
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
Name
Gets or sets the name.
public virtual string Name { get; set; }
Property Value
NodalFilter
public static string NodalFilter { get; }
Property Value
Nodes
Gets node container.
public Mesh.NodeContainer Nodes { get; }
Property Value
NonSymmetricName
Gets the name of the non symmetric.
public virtual string NonSymmetricName { get; }
Property Value
Properties
Gets or sets the properties.
public Properties Properties { get; set; }
Property Value
RigidBodyElements
Gets or sets the rigid body elements.
public NamedObjectDictionary<frbe> RigidBodyElements { get; set; }
Property Value
NamedObjectDictionaryFRBE>
SelectedModeCount
Gets the selected mode's count.
public int SelectedModeCount { get; }
Property Value
Sets
Gets or sets the sets.
public Sets Sets { get; set; }
Property Value
StartModeName
Gets the mode name at first.
public string StartModeName { get; }
Property Value
TypeOfDFMF
public Mesh.DFMFType TypeOfDFMF { get; }
Property Value
UseDFMF
public bool UseDFMF { get; }
Property Value
UseModalReferencePosition
Gets or sets the use modal reference position.
public bool UseModalReferencePosition { get; set; }
Property Value
_Color
Gets or sets the color.
public int _Color { get; set; }
Property Value
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> >*, double*, _VM_VECTOR*, double*, double*, double*, double*, double*, double*)
public void CalcMassProperty(list_VM_VECTOR,std::allocator_VM_VECTOR> >* 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> >*
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
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
FixUp(ObjectBase)
Before destroy the old object, perform a work.
public override bool FixUp(ObjectBase ob)
Parameters
ob ObjectBase
The old object.
Returns
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
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
GetMaterials()
Gets the materials.
public IEnumerable<imaterial> GetMaterials()
Returns
GetNodeID(uint)
Gets the node ID.
public uint GetNodeID(uint nIndex)
Parameters
nIndex uint
The node index.
Returns
GetNodeIndex(uint)
Gets the node Index.
public uint GetNodeIndex(uint nID)
Parameters
nID uint
The node ID.
Returns
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>
Returns
IEnumerableuint>
GetPropertyNameToOuterNodes()
public Dictionary<string>> GetPropertyNameToOuterNodes()
Returns
Dictionarystring, Listuint[]>>
GetSubChangableEntityImpl(Dictionary)
Gets the sub changable entity.
void GetSubChangableEntityImpl(Dictionary<string objectbase> dicObj)
Parameters
dicObj Dictionarystring, ObjectBase>
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
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
true if is [delete setpatch] [the specified setpatch]; otherwise, false.
IsOnlyLinearMaterial()
Determines whether refer linear material only.
public bool IsOnlyLinearMaterial()
Returns
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
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
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
UpdateMesh()
Update mesh.
public virtual void UpdateMesh()
get_Elements(ElementType)
public Mesh.ElementContainer get_Elements(ElementType type)
Parameters
type ElementType