Class vd3DFace
- Namespace
- VectorDraw.Professional.vdFigures
- Assembly
- VectorDraw.Professional.dll
Represents a 3D face defined by four vertices. This object is drawn as a closed polyline and is rendered as a solid face.
public class vd3DFace : vdFigure, IDisposable, IVDSerialise, IBaseObject
- Inheritance
-
vd3DFace
- Implements
- Inherited Members
Examples
// Create a face and hide the first edge var face = new vd3DFace(doc, new gPoint(0,0,0), new gPoint(1,0,0), new gPoint(1,1,0), new gPoint(0,1,0)); face.EdgeVisibility = 1; // hide the first edge
Remarks
A vd3DFace stores four 3D points in the World Coordinate System (WCS) that form a planar quadrilateral. Individual edges may be hidden using the EdgeVisibility property (bit flags: 1 = first edge, 2 = second edge, 4 = third edge, 8 = fourth edge). Use VertexList to read or modify the vertices; calling Update() after geometry changes will recalculate dependent values such as the bounding box.
Constructors
- vd3DFace()
Initializes a new instance of the vd3DFace object.
- vd3DFace(vdDocument)
Initializes a new instance of the vd3DFace object and registers it to the passed Document.
- vd3DFace(vdDocument, gPoint, gPoint, gPoint, gPoint)
Initializes a new instance of the vd3DFace object and registers it to the passed Document.
- vd3DFace(vdDocument, gPoint, gPoint, gPoint, gPoint, int)
Initializes a new instance of the vd3DFace object and registers it to the passed Document.
Properties
- BoundingBox
Gets the Bounding Box of the 3dFace object in WorldCoordinate System.
- EdgeVisibility
Get/Set the visibilty of 4 sides of 3dface object(1,2,4,8).
- VertexList
Get/Set the vertex list of the vd3DFace object.
Methods
- Area()
Calculates the enclosed area of the vdRect object in Drawing Units.
- DeSerialize(DeSerializer, string, object)
This Function is called foreach field name of the vd3DFace object when opening in vdml format.
- Draw(vdRender)
Called in order to draw the object in a specified vdRender object.
- Explode()
Explodes the vd3Dface object into subentity vdPolyline.
- GetCompareHash()
Returns a unique 32 bit integer value according to the object type and its properties values
- GetGripPoints()
A function returning the grip points of the object.
- GetValidGripPointsItems()
Returns the number of valid grip points of the object. Must return the same number of points as the GetGripPoints() method.
- InitializeProperties()
Resets the properties of the vd3DFace object to the Default values.
- IntersectWith(vdFigure, VdConstInters, gPoints)
Finds the intersection points of an object with another object.
- MatchProperties(vdPrimary, vdDocument)
Matches all the common properties from an object and sets them to this object.
- MoveGripPointsAt(Int32Array, double, double, double)
This function is intended to be called during a grip edit of the object.
- OverlapVertex()
Returns the one(1) base index of overlap vertex for a face that consists from four(4) points.
- Reverse()
Reverse the order of the VertexList
- Serialize(Serializer)
This Function is called when saving the vd3DFace object to vdml format.
- ToString()
Gets a System.String that represents the type the vd3DFace Object.
- Transformby(Matrix)
Transforms all geometrical properties of this object by the specified Matrix.
- Update()
Updates the object after change of properties.
- getOsnapPoints(Matrix, OsnapMode, gPoint, gPoint, int, OsnapPoints)
Overrrides the getOsnapPoints(Matrix, OsnapMode, gPoint, gPoint, int, OsnapPoints).