Method GetGeometry
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
GetGeometry()
Gets the library's shapes for the entity, as DxfReader reads it with its default options: a GeoLine3 for a LINE, two GeoTriangle3 for a 3DFACE whose corners are not in one plane, the shapes of its block placed for an INSERT; none for a type the reader does not read, as a HATCH, or an entity with no shape to it, as a LINE of no length. A LEADER gives its curve, as the reader reads it and AutoCAD intersects a leader on it: a GeoPolyline3 through its vertices, a vertex on the one before it left out, so that the leader from (0, 0, 0) to (10, 5, 0) meets the line x = 5 at (5, 2.5, 0); splined, the GeoSpline3 of the spline Explode() fits through them; none where fewer than two of its vertices are apart. A MULTILEADER gives the lines of its leaders, as DxfMLeader says, and not its words or block. An IMAGE and a WIPEOUT, which the reader does not read, give the closed GeoPolyline3 of their GetVertices(), the frame of the image or its boundary where it is clipped; an OLE2FRAME the closed GeoPolyline3 of the four corners of its Position3d.
public IReadOnlyList<object> GetGeometry()
Returns
- IReadOnlyList<object>
The shapes, in the coordinates of the file, the same list until the entity is changed; of an IMAGE, a WIPEOUT and an OLE2FRAME, a new list on each call.