Class SetFace
Last update: 09.03.2026Namespace: VM.Managed.DAFUL
Assembly: VMDFBase.dll
This class is to represent the face set.
public class SetFace : SubEntity, IObservableObject, IDisposableObject, ILinkable, ILinkContainerEvent, IVerifiable, IHistoryObjectSerializable, IAttributeContainer, ISubEntity, IEntityBase, IObjectBase, IObject, ILinkContainer, IOwned, IHasID, IEventProvider, IHasKeyObject, IHasName, IEnabled, IHasComment, INamed, INavigatorItem, IContactableRigid3D, IContactableRigid, IContactable3D, IContactable, IBodyAnalysisType, IObjectSet, IReferencable, ITemplateObject, IChainedSegmentConnector, IChainedSegmentContact, IArgument, IMultiChangable, IFaceSetComponent, ITopologyset, IConnectable, IEntityRelation, IHasBody, IMarkerParent, ITemperatureComponent, IConvectionComponent, IHeatFlowComponent, IHeatFluxComponent, IGeometricalComponent, IFaceSetInformation, IFaceInformation, IGapTarget, IPostDeserialized, IPostOpenDocumentForFaceset
Inheritance
object ← ObservableObject ← LinkableBase ← ObjectBase ← Object<ObjectEventCore> ← SubEntity ← SetFace
Derived
Implements
IObservableObject, IDisposableObject, ILinkable, ILinkContainerEvent, IVerifiable, IHistoryObjectSerializable, IAttributeContainer, ISubEntity, IEntityBase, IObjectBase, IObject, ILinkContainer, IOwned, IHasID, IEventProvider, IHasKeyObject, IHasName, IEnabled, IHasComment, INamed, INavigatorItem, IContactableRigid3D, IContactableRigid, IContactable3D, IContactable, IBodyAnalysisType, IObjectSet, IReferencable, ITemplateObject, IChainedSegmentConnector, IChainedSegmentContact, IArgument, IMultiChangable, IFaceSetComponent, ITopologyset, IConnectable, IEntityRelation, IHasBody, IMarkerParent, ITemperatureComponent, IConvectionComponent, IHeatFlowComponent, IHeatFluxComponent, IGeometricalComponent, IFaceSetInformation, IFaceInformation, IGapTarget, IPostDeserialized, IPostOpenDocumentForFaceset
Inherited Members
SubEntity.Initialize(Unit.ConvertFactor), SubEntity.GetModelNavigatorInformationImpl(XmlDocument, XmlElement, bool), SubEntity.FixUp(ObjectBase), SubEntity.WriteTemplateImpl(XmlWriter), SubEntity.ReadTemplateImpl(XmlReader), SubEntity.Name, SubEntity.FullName, SubEntity.NonSymmetricName, SubEntity.DisplayName, SubEntity.IsEnabled, SubEntity.Comment, Object<ObjectEventCore>.GetKey(), Object<ObjectEventCore>.Initialize(Unit.ConvertFactor), Object<ObjectEventCore>.SetIconColor(Canvas), Object<ObjectEventCore>.OnDeserialization(object), Object<ObjectEventCore>.CustomGetObjectData(SerializationInfo, StreamingContext), Object<ObjectEventCore>.RollbackEvent(), Object<ObjectEventCore>.OnDeserializedCore(object), Object<ObjectEventCore>.Key, Object<ObjectEventCore>.UntypedEventCore, Object<ObjectEventCore>.EventCore, Object<ObjectEventCore>.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>), ObjectBase.ResetInvalidEntity(), ObjectBase.OnDeserialization(object), ObjectBase.IsSerializableEvent(Delegate), ObjectBase.CustomGetObjectData(SerializationInfo, StreamingContext), ObjectBase.CheckAndUpdateLink(HashSet<ObjectBase>), 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[], T[]), ObjectBase.IsEqualList(List<double>, List<double>), 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<T>(object, LinkPropertyType)
Constructors
SetFace()
Initializes a new instance of the
public SetFace()
SetFace(string)
Initializes a new instance of the
public SetFace(string strName)
Parameters
strName string
Name of the face set.
Properties
AnalysisType
Gets the analysis type.
public virtual BodyAnalysisType AnalysisType { get; }
Property Value
ArgumentType
Gets the type of the argument
public ArgumentTypes ArgumentType { get; }
Property Value
ArgumentTypes
AttribType
Gets the attribute type of face set.
public AttributeFacesetTypeBase.FacesetType AttribType { get; }
Property Value
AttributeFacesetTypeBase.FacesetType
AutomaticSelectionGeometryType
Gets or sets a value indicating whether geometry type determined automatically.
public bool AutomaticSelectionGeometryType { get; set; }
Property Value
bool
Body
Gets the body.
public IBody Body { get; }
Property Value
IBody
Center
Gets the center position of the object.
public TMatrix Center { get; }
Property Value
TMatrix
Connectable
Gets the connectable.
public virtual IConnectable Connectable { get; }
Property Value
ConnectableBody
Gets the connectable body.
public ObjectBase ConnectableBody { get; }
Property Value
ObjectBase
ConnectableFullName
Gets the full name of the connectable.
public string ConnectableFullName { get; }
Property Value
string
ConnectableName
Gets the name of the connectable.
public string ConnectableName { get; }
Property Value
string
ConnectablePosition
Sets the connectable position.
public Vector ConnectablePosition { set; }
Property Value
Vector
ConnectablePostfixName
Sets the postfix name of the connectable.
public string ConnectablePostfixName { set; }
Property Value
string
FaceList
Gets the face link list.
public IList<Face> FaceList { get; }
Property Value
IList<Face>
GeometryFullName
Gets the geometry full name
public string GeometryFullName { get; }
Property Value
string
GeometryNameForMultiContact
Gets the name for multiple contact
public string GeometryNameForMultiContact { get; }
Property Value
string
GeometryType
Gets or sets a geometry type.
public GeometryType GeometryType { get; set; }
Property Value
HalfThickness
Gets or sets the half thickness.
public ExpressionValueVariable HalfThickness { get; set; }
Property Value
IsActionGeometry
Gets or sets a value indicating whether this instance is action geometry.
public bool IsActionGeometry { get; set; }
Property Value
bool
IsBaseGeometry
Gets or sets a value indicating whether this instance is base geometry.
public bool IsBaseGeometry { get; set; }
Property Value
bool
IsFacetingForGeometryRepresentation
Gets or sets a value indicating whether this instance is faceting for geometry representation.
public bool IsFacetingForGeometryRepresentation { get; set; }
Property Value
bool
IsRepresentedAsBSurface
Gets or sets a value indicating whether this instance is represented as B-surface.
public bool IsRepresentedAsBSurface { get; set; }
Property Value
bool
IsSphereTreatedAsSurface
Gets a value indicating whether the geometry type is sphere and it will be ignored.
public bool IsSphereTreatedAsSurface { get; }
Property Value
bool
MaxPenetration
Gets the maximum penetration.
public ExpressionValueVariable MaxPenetration { get; }
Property Value
ParentBody
Gets or sets the parent body.
public ObjectBase ParentBody { get; set; }
Property Value
ObjectBase
ParentType
Gets the type of the marker's parent.
public MarkerParentType ParentType { get; }
Property Value
ReferenceFrameType
Gets the type of the marker's reference frame.
public MarkerReferenceFrameType ReferenceFrameType { get; }
Property Value
ReferenceType
Gets the type of the reference.
public string ReferenceType { get; }
Property Value
string
SphereRadius
Gets or sets the radius of sphere.
public ExpressionValueVariable SphereRadius { get; set; }
Property Value
SurfaceSmoothingType
Gets or sets the type of the surface smoothing.
public SurfaceSmoothing SurfaceSmoothingType { get; set; }
Property Value
TopologyList
Gets or sets the topology list.
public TopologyList<Face> TopologyList { get; set; }
Property Value
TopologyList<Face>
Methods
AddFace(Face)
Adds the face to topology list.
public virtual void AddFace(Face face)
Parameters
face Face
The face.
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.
GetCADBody()
Gets the cad body from parent body.
public Body GetCADBody()
Returns
Body
GetCount()
Gets the face's count.
public int GetCount()
Returns
int
The face's count.
GetDefaultMaxPenetration(ref double, IReferencable)
Gets the default maximum penetration.
public bool GetDefaultMaxPenetration(ref double dMaxPenetration, IReferencable reference)
Parameters
dMaxPenetration double
The maximum penetration.
reference IReferencable
The reference.
Returns
bool
true if success; otherwise, false.
GetElementKey(int)
Gets the element(face) key.
public UIntPtr GetElementKey(int nIndex)
Parameters
nIndex int
The Index.
Returns
UIntPtr
The element(face) key.
GetElementType()
Gets the type of the element(face).
public Type GetElementType()
Returns
Type
The type of the element(face).
GetFacetModifiedTimeAttribute()
public AttributeFacetModifiedTime GetFacetModifiedTimeAttribute()
Returns
GetFacetOption()
Gets the facet option.
public FacetOption GetFacetOption()
Returns
The facet option
GetGeometryNavigatorInformation(XmlDocument, XmlElement)
Gets the geometry information for model navigator .
public bool GetGeometryNavigatorInformation(XmlDocument xmlDom, XmlElement xmlEle)
Parameters
xmlDom XmlDocument
The XmlDocument information.
xmlEle XmlElement
The XmlElement information.
Returns
bool
true if success; otherwise, false.
GetMinimumDistance(IFaceInformation, TMatrix, TMatrix, double)
Gets minimum distance
public virtual double GetMinimumDistance(IFaceInformation compare_info, TMatrix mat, TMatrix compare_mat, double dLengthFactor)
Parameters
compare_info IFaceInformation
The compare information
mat TMatrix
The transform
compare_mat TMatrix
The compare entity transform
dLengthFactor double
The length factor.
Returns
double
GetMinimumDistanceAndDirection(IFaceInformation, TMatrix, TMatrix, ref VectorBase[], double)
Gets minimum distance and direction
public virtual double GetMinimumDistanceAndDirection(IFaceInformation compare_info, TMatrix mat, TMatrix compare_mat, ref VectorBase[] arDirection, double dLengthFactor)
Parameters
compare_info IFaceInformation
The compare information
mat TMatrix
The transform
compare_mat TMatrix
The compare entity transform
arDirection VectorBase[]
The direction array
dLengthFactor double
The length factor.
Returns
double
GetModelNavigatorInformationImpl(XmlDocument, XmlElement, bool)
Gets the object information for model navigator [implementation].
protected override bool GetModelNavigatorInformationImpl(XmlDocument xmlDom, XmlElement xmlEle, bool bHasChild)
Parameters
xmlDom XmlDocument
The XmlDocument for object.
xmlEle XmlElement
The XmlElement for object.
bHasChild bool
if set to true [has child].
Returns
bool
true if success; otherwise, false.
GetPointAndConnectivity(FacetOption, ref VectorBase[], ref int[], ref int[], Reference, double)
Gets point and connectivity
public virtual void GetPointAndConnectivity(FacetOption facetOptions, ref VectorBase[] arPt, ref int[] arConnectivity, ref int[] arNumOfConnectivity, Reference reference, double dLengthFactor)
Parameters
facetOptions FacetOption
The facet options.
arPt VectorBase[]
The points
arConnectivity int[]
The connectivity
arNumOfConnectivity int[]
The number of connectivity
reference Reference
The reference entity
dLengthFactor double
The length factor.
GetPointDirection(ref VectorBase, ref VectorBase, IReferencable)
Gets the point direction. (using facet information)
public bool GetPointDirection(ref VectorBase point, ref VectorBase direction, IReferencable reference)
Parameters
point VectorBase
The point.
direction VectorBase
The direction.
reference IReferencable
The reference.
Returns
bool
true if success; otherwise, false.
GetPointDirectionOnGeometry(ref VectorBase, ref VectorBase, IReferencable)
Gets the point direction. (using geometry information)
public bool GetPointDirectionOnGeometry(ref VectorBase point, ref VectorBase direction, IReferencable reference)
Parameters
point VectorBase
The point.
direction VectorBase
The direction.
reference IReferencable
The reference.
Returns
bool
true if success; otherwise, false.
GetTargetListForUpdate()
Gets the target list for update.
public override List<IEventProvider> GetTargetListForUpdate()
Returns
List<IEventProvider>
Initialize(ConvertFactor)
Initializes member through unit convert factor.
public override void Initialize(Unit.ConvertFactor factor)
Parameters
factor Unit.ConvertFactor
The unit convert factor.
IsContactableWithNormalVector(VectorBase, VectorBase)
wherther it is contactable or not
public static bool IsContactableWithNormalVector(VectorBase targetDirection, VectorBase toolDirection)
Parameters
targetDirection VectorBase
target direction
toolDirection VectorBase
tool direction
Returns
bool
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
MakeReferenceImpl(LinkedList<Reference>)
Makes the reference [implementation].
protected virtual void MakeReferenceImpl(LinkedList<Reference> lstRef)
Parameters
lstRef LinkedList<Reference>
The container.
PostAddToDocument()
Call when post [add to document].
public override void PostAddToDocument()
PostRemoveFromDocument(Document)
Call when post [remove from document].
The documentpublic override void PostRemoveFromDocument(Document document)
Parameters
document Document
ReadTemplateImpl(XmlReader)
Reads the template document [implementation].
protected override void ReadTemplateImpl(XmlReader reader)
Parameters
reader XmlReader
The reader.
RemoveAllFace()
Removes all face from topology list.
public void RemoveAllFace()
RemoveFace(Face)
Removes the face from topology list.
public void RemoveFace(Face face)
Parameters
face Face
The face.
ResetInvalidEntity()
Reset invalid entity.
public override void ResetInvalidEntity()
WriteTemplateImpl(XmlWriter)
Writes the template document [implementation].
protected override void WriteTemplateImpl(XmlWriter writer)
Parameters
writer XmlWriter
The writer.