task reconstruct the provided floor plan image into an accurate 2d architectural cad drawing geometry rules detect wall centerlines first then reconstruct full wall geometry with correct wall thickness exterior walls should be identified and drawn thicker than interior partitions ensure all walls are straight and orthogonal unless the plan clearly contains curved geometry preserve curved architectural elements such as the spiral staircase and rounded terrace using true arcs automatically close all wall loops to form valid room boundaries measurements and scale detect all visible dimension annotations in the image use the detected measurements to scale the plan precisely units must be millimeters maintain exact proportional distances between walls and openings architectural elements detect and redraw walls door openings with swing arcs windows staircases structural columns if present maintain door widths and opening directions where visible maintain staircase geometry including central column and radial steps cleaning rules remove furniture shading textures and graphic overlays remove dimension text but keep the geometry they define remove hatch patterns and decorative graphics topology rules ensure all geometry forms closed polylines remove broken segments and duplicate edges align the plan to an orthogonal grid produce clean vector geometry suitable for cad editing output format 2d cad vector plan dxf compatible linework separate layers walls doors windows stairs structural elements result goal produce a clean dimensionally accurate floor plan that can be directly imported into sketchup and extruded into a 3d architectural model represent walls as single centerline polylines instead of double edges generate one straight polyline per wall segment merge collinear segments into a single line remove duplicate and overlapping edges ensure each wall is represented by one continuous line wall geometry must be represented as single straight centerline polylines collinear segments should be merged into one line