pub fn read_dxf_entities(text: &str) -> OgeomResult<DxfEntities>Expand description
Read the typed entities, the units and the layers’ linetypes out of an ASCII DXF.
Lines, arcs, circles, ellipses, splines, POLYLINE and LWPOLYLINE
are read from the ENTITIES section, with a polyline’s closed flag and
bulges; a POLYLINE header’s own point is its elevation, not a
vertex. An entity whose extrusion is (0, 0, -1) is seen from below,
and its planar coordinates are mirrored in x to the drawing’s own view.
Blocks, inserts, text, dimensions and hatches are skipped.
§Errors
OgeomError::Construction if the
file is not group-coded in pairs, or an entity’s extrusion is neither
up nor down, or an ellipse or spline is seen from below.