Class Trace
Represents a trace EntityObject.
Inherited Members
Namespace: netDxf.Entities
Assembly: CADability.dll
Syntax
public class Trace : EntityObject, IHasXData, ICloneable
Remarks
The trace entity has exactly the same graphical representation as the Solid, and its functionality is exactly the same. It is recommended to use the more common Solid entity instead.
Constructors
| Improve this Doc View SourceTrace()
Initializes a new instance of the Trace class.
Declaration
public Trace()
Trace(Vector2, Vector2, Vector2)
Initializes a new instance of the Trace class.
Declaration
public Trace(Vector2 firstVertex, Vector2 secondVertex, Vector2 thirdVertex)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | firstVertex | Trace Vector2 in OCS (object coordinate system). |
| Vector2 | secondVertex | Trace Vector2 in OCS (object coordinate system). |
| Vector2 | thirdVertex | Trace Vector2 in OCS (object coordinate system). |
Trace(Vector2, Vector2, Vector2, Vector2)
Initializes a new instance of the Trace class.
Declaration
public Trace(Vector2 firstVertex, Vector2 secondVertex, Vector2 thirdVertex, Vector2 fourthVertex)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | firstVertex | Trace Vector2 in OCS (object coordinate system). |
| Vector2 | secondVertex | Trace Vector2 in OCS (object coordinate system). |
| Vector2 | thirdVertex | Trace Vector2 in OCS (object coordinate system). |
| Vector2 | fourthVertex | Trace Vector2 in OCS (object coordinate system). |
Properties
| Improve this Doc View SourceElevation
Gets or sets the trace elevation.
Declaration
public double Elevation { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double |
Remarks
This is the distance from the origin to the plane of the trace.
FirstVertex
Gets or sets the first trace Vector3.
Declaration
public Vector2 FirstVertex { get; set; }
Property Value
| Type | Description |
|---|---|
| Vector2 |
FourthVertex
Gets or sets the fourth trace Vector3.
Declaration
public Vector2 FourthVertex { get; set; }
Property Value
| Type | Description |
|---|---|
| Vector2 |
SecondVertex
Gets or sets the second trace Vector3.
Declaration
public Vector2 SecondVertex { get; set; }
Property Value
| Type | Description |
|---|---|
| Vector2 |
Thickness
Gets or sets the thickness of the trace.
Declaration
public double Thickness { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double |
ThirdVertex
Gets or sets the third trace Vector3.
Declaration
public Vector2 ThirdVertex { get; set; }
Property Value
| Type | Description |
|---|---|
| Vector2 |
Methods
| Improve this Doc View SourceClone()
Creates a new Trace that is a copy of the current instance.
Declaration
public override object Clone()
Returns
| Type | Description |
|---|---|
| System.Object | A new Trace that is a copy of this instance. |
Overrides
| Improve this Doc View SourceTransformBy(Matrix3, Vector3)
Moves, scales, and/or rotates the current entity given a 3x3 transformation matrix and a translation vector.
Declaration
public override void TransformBy(Matrix3 transformation, Vector3 translation)
Parameters
| Type | Name | Description |
|---|---|---|
| Matrix3 | transformation | Transformation matrix. |
| Vector3 | translation | Translation vector. |
Overrides
Remarks
Matrix3 adopts the convention of using column vectors to represent a transformation matrix.