Class Face
Last update: 16.07.2025Namespace: 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 ←
ObjectBase ←
Object
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
Extension Methods
LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType),
LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType),
LinkPropertyItemCache.GetLinkedObjects
Constructors
Face()
Initializes a new instance of the
public Face()
Properties
FacetPositions
Gets or sets the facet position array.
public VectorBase[] FacetPositions { get; }
Property Value
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
GetDefaultMaxPenetration(ref double)
Gets the default maximum penetration.
public bool GetDefaultMaxPenetration(ref double dMaxPenetration)
Parameters
dMaxPenetration double
The value holds maximum penetration.
Returns
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
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
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
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
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
true if success; otherwise, false.
GetTypeName()
Gets the name of topology(edge, face, vertex).
public override string GetTypeName()
Returns
The name of topology
IsReverseNormalDirection()
Determines whether is [reverse normal direction].
public bool IsReverseNormalDirection()
Returns
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
true if is [reverse normal direction] [the toggle state]; otherwise, false.
IsSphere()
Wheather face is sphere or not.
public bool IsSphere()
Returns
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
ToplogyInfo()
protected override string ToplogyInfo()