Skip to main content

Motion Standalone Preprocessor C# library 2025 R1

Class Face

Last update: 16.07.2025

Namespace: VM.Managed.CAD
Assembly: VMAppCore.dll

This class is to represent the face in topology.

public class Face : Topology, IObservableObject, IDisposableObject, ILinkable, IObjectBase, IObject, ILinkContainer, IOwned, IHasID, IEventProvider, IHasKeyObject, ILinkContainerEvent, IVerifiable, IHistoryObjectSerializable, IAttributeContainer, IDrawFacet, IFaceInformation

Inheritance

object ← ObservableObject ← LinkableBase ← ObjectBaseObjectTopologyFace

Implements

IObservableObject, IDisposableObject, ILinkable, IObjectBase, IObject, ILinkContainer, IOwned, IHasID, IEventProvider, IHasKeyObject, ILinkContainerEvent, IVerifiable, IHistoryObjectSerializable, IAttributeContainer, IDrawFacet, IFaceInformation

Inherited Members

Topology.GetTypeName(), Topology.Initialize(Unit.ConvertFactor), Topology.ResetInvalidEntity(), Topology.GetPrefixName(), Topology.ConnectProxy(), Topology.ToplogyInfo(), Topology.OnDeserialization(object), Topology.GetName(), Topology.InitializeTopologyName(bool), Topology.GetUnnamedObjectName(object), Topology.GetColor(ref Color), Topology.ToplogyInfoImpl(), Topology.IndexCont, Topology.IsValid, Topology.Body, Topology.Index, 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

Face()

Initializes a new instance of the class.

public Face()

Properties

FacetPositions

Gets or sets the facet position array.

public VectorBase[] FacetPositions { get; }

Property Value

VectorBase[]

Methods

Draw(Canvas)

Draws face.

public void Draw(Canvas canvas)

Parameters

canvas Canvas

The canvas has icon information.

DrawFacet(Canvas)

Draws facet.

void DrawFacet(Canvas canvas)

Parameters

canvas Canvas

The canvas has icon information.

DrawFacetByDefaultParameters(Canvas)

Draws facet.

void DrawFacetByDefaultParameters(Canvas canvas)

Parameters

canvas Canvas

The canvas has icon information.

DrawFacetInGlobal(Canvas)

Draw facet in global.

void DrawFacetInGlobal(Canvas canvas)

Parameters

canvas Canvas

The canvas.

GetArea()

Get area of face.

public double GetArea()

Returns

double

GetDefaultMaxPenetration(ref double)

Gets the default maximum penetration.

public bool GetDefaultMaxPenetration(ref double dMaxPenetration)

Parameters

dMaxPenetration double

The value holds maximum penetration.

Returns

bool

true if success; otherwise, false.

GetFacetInfo(ref VectorBase[], ref int[])

Get facet information.

public void GetFacetInfo(ref VectorBase[] arPt, ref int[] arConnectivity)

Parameters

arPt VectorBase[]

The facet point array.

arConnectivity int[]

The facet connetivity array.

GetFacetMidPointInfo(ref VectorBase[])

Get facet middle point information.

public void GetFacetMidPointInfo(ref VectorBase[] arPt)

Parameters

arPt VectorBase[]

The facet middle point array.

GetPointAndDirection(ref VectorBase, ref VectorBase, double, double)

public bool GetPointAndDirection(ref VectorBase vecPosition, ref VectorBase vecDirection, double dU, double dV)

Parameters

vecPosition VectorBase

vecDirection VectorBase

dU double

dV double

Returns

bool

GetPointAndDirection(ref VectorBase, ref VectorBase)

Gets the point and direction.

public bool GetPointAndDirection(ref VectorBase vecPosition, ref VectorBase vecDirection)

Parameters

vecPosition VectorBase

The position.

vecDirection VectorBase

The direction.

Returns

bool

true if success; otherwise, false.

GetPointAndDirectionFromBoundaryEdge(ref VectorBase, ref VectorBase, double, uint)

public bool GetPointAndDirectionFromBoundaryEdge(ref VectorBase vecPosition, ref VectorBase vecDirection, double dU, uint nIndex)

Parameters

vecPosition VectorBase

vecDirection VectorBase

dU double

nIndex uint

Returns

bool

GetPointAndDirectionFromFacet(ref VectorBase[], ref VectorBase[])

Gets the point and direction from facet.

public bool GetPointAndDirectionFromFacet(ref VectorBase[] arPosition, ref VectorBase[] arDirection)

Parameters

arPosition VectorBase[]

The position.

arDirection VectorBase[]

The direction.

Returns

bool

true if success; otherwise, false.

GetPointAndDirectionFromFacet(ref VectorBase, ref VectorBase)

Gets the point and direction from facet.

public bool GetPointAndDirectionFromFacet(ref VectorBase vecPosition, ref VectorBase vecDirection)

Parameters

vecPosition VectorBase

The position.

vecDirection VectorBase

The direction.

Returns

bool

true if success; otherwise, false.

GetTypeName()

Gets the name of topology(edge, face, vertex).

public override string GetTypeName()

Returns

string

The name of topology

IsReverseNormalDirection()

Determines whether is [reverse normal direction].

public bool IsReverseNormalDirection()

Returns

bool

true if is [reverse normal direction]; otherwise, false.

IsReverseNormalDirection(bool)

Determines whether is [reverse normal direction] [the toggle state].

public bool IsReverseNormalDirection(bool bToggle)

Parameters

bToggle bool

if set to true normal direction is moving currnet's opposite state.

Returns

bool

true if is [reverse normal direction] [the toggle state]; otherwise, false.

IsSphere()

Wheather face is sphere or not.

public bool IsSphere()

Returns

bool

RollbackNormalDirection()

Roll back normal direction.

public void RollbackNormalDirection()

SetGeometryRepresentation(string, string, bool)

Set geometry representation.

bool SetGeometryRepresentation(string strGeom, string strDefaultGeom, bool bUseRedraw)

Parameters

strGeom string

The geometry information.

strDefaultGeom string

The geometry information when checked default value.

bUseRedraw bool

The redraw flag.

Returns

bool

ToplogyInfo()

protected override string ToplogyInfo()

Returns

string

Connect with Ansys