Class DxfDBPoint
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
A POINT of a DXF file, as AutoCAD's DBPoint: a point at Position, in world coordinates, with the
Normal its Thickness stands up along.
public sealed class DxfDBPoint : DxfEntity
- Inheritance
-
DxfDBPoint
- Inherited Members
Remarks
The point at (3, 4, 5) is drawn as the header's Pdmode and Pdsize say; with a thickness of 2 it is a line 2 long standing up from there along its normal. The file holds the position in world coordinates (groups 10, 20, 30), as AutoCAD gives it, and the turn of the point's symbol about its normal in degrees (group 50), which EcsRotation gives in radians.
Every other group of the record is kept as it was; new DxfDBPoint(position) { Layer = "marks" } makes one in
code, to be added to a drawing by AppendEntity(DxfEntity).
Constructors
- DxfDBPoint()
Initializes a point at the origin, as AutoCAD's
new DBPoint(), on layer 0 in no file.
- DxfDBPoint(GeoPoint3)
Initializes a point, as AutoCAD's
new DBPoint(position), on layer 0 with no look of its own, in no file until it is added to one.
Properties
- EcsRotation
Gets or sets the turn of the point's symbol about its normal, as AutoCAD's
EcsRotation: in radians, from the degrees of group 50; nought where the record gives none. A point with 90 in its group 50 is pi / 2.
- Normal
Gets or sets the normal of the point (groups 210, 220, 230), the direction its Thickness stands up along, of unit length; (0, 0, 1) where the record gives none.
- Position
Gets or sets where the point is (groups 10, 20, 30), in world coordinates, as AutoCAD's
Position; the origin where the record gives none.
- Thickness
Gets or sets how far the point stands up along its Normal (group 39); nought where the record gives none.
Methods
- ToGeoPoint2()
Gets the point in the plane, as DxfReader reads it with PlanAs2D: the point at (3, 4, 0) is the GeoPoint2 (3, 4). The point at (3, 4, 5) does not lie on the floor, and is refused rather than flattened, where the AutoCAD bridge's
ToGeoPoint2drops z.
- ToGeoPoint2(Tolerance)
Gets the point in the plane, as ToGeoPoint2() does, as DxfReader reads it within a tolerance, which a point does not need: it gives the same at any.
- ToGeoPoint3()
Gets the point as the library's, as the AutoCAD bridge's
ToGeoPoint3gives aPoint3d: the shape GetGeometry() gives, to the bit. The point at (3, 4, 5) is the GeoPoint3 (3, 4, 5).