Class DxfSolid
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
A SOLID of a DXF file, as AutoCAD's Solid: a filled area of three or four corners in the plane of its
Normal, standing up by its Thickness.
public sealed class DxfSolid : DxfEntity
- Inheritance
-
DxfSolid
- Inherited Members
Remarks
The corners are groups 10 to 13 in the system of the normal, in DXF's order: the area runs 0, 1, 3, 2 round, so the square of side 2 is (0, 0), (2, 0), (0, 2), (2, 2). GetPointAt(short) gives a corner in the world, taken there as DxfReader takes it, a corner with no height of its own at that of the first; a triangle repeats its third corner as its fourth.
A TRACE, which AutoCAD reads as a Trace of its own, is not a DxfSolid.
new DxfSolid(a, b, c, d) makes one in code, to be added to a drawing of any version.
Constructors
- DxfSolid()
Initializes a solid whose four corners are at the origin, as AutoCAD's
new Solid(), on layer 0 in no file; give it its corners with SetPointAt(short, GeoPoint3).
- DxfSolid(GeoPoint3, GeoPoint3, GeoPoint3)
Initializes a triangle, as AutoCAD's
new Solid(pointer1, pointer2, pointer3): the third corner written again as the fourth.
- DxfSolid(GeoPoint3, GeoPoint3, GeoPoint3, GeoPoint3)
Initializes a solid of four corners, as AutoCAD's
new Solid(pointer1, pointer2, pointer3, pointer4), in DXF's order (the area runs 1, 2, 4, 3 round), on layer 0 in no file until it is added to one.
Properties
- Normal
Gets or sets the normal of the plane of the solid (groups 210, 220, 230), of unit length; (0, 0, 1) where the record gives none.
- Thickness
Gets or sets how far the solid stands up along its Normal (group 39); nought where the record gives none.
Methods
- GetPointAt(short)
Gets a corner in the world, as AutoCAD's
GetPointAt: groups 10 + index, 20 + index and 30 + index in the system of the normal, the height of the first where the corner gives none, the third where the record gives no fourth.
- SetPointAt(short, GeoPoint3)
Moves a corner, given in the world, as AutoCAD's
SetPointAt: written in the system of the normal, its height with it.
- ToGeoPolygon2()
Gets the area of the solid as a polygon of the plane, as DxfReader reads it with PlanAs2D within the default tolerance: the square above is the GeoPolygon2 (0, 0), (2, 0), (2, 2), (0, 2). One at a height, or on a normal other than (0, 0, 1) and (0, 0, -1), does not lie on the floor, and is refused.
- ToGeoPolygon2(Tolerance)
Gets the area of the solid as a polygon of the plane, as ToGeoPolygon2() does, within a tolerance, which says whether it encloses an area.
- ToGeoPolygon3()
Gets the area of the solid as the library's polygon, as GetGeometry() gives it, to the bit: its corners in the world in DXF's order 1, 2, 4, 3, a fourth the same as the third to the bit a triangle. The square of side 2 written (0, 0), (2, 0), (0, 2), (2, 2) is the GeoPolygon3 (0, 0, 0), (2, 0, 0), (2, 2, 0), (0, 2, 0).