forked from 1b-agent/opencadstudio-upstream
Civil 3D files can legitimately carry profile geometry at huge Z (10^6+ units) inside an otherwise small XY footprint — long-section polylines on a road, for example. fit_all's outlier gate previously filtered any point whose |x|, |y|, or |z| exceeded 10× the header extent half-size, which dropped those polylines and made ZOOM EXTENTS center on the main drawing only, leaving the profile geometry permanently invisible. The gate exists to reject origin-stuck entities and Ray/XLine far points, both of which manifest as large XY excursions after world_offset subtraction. Z-axis outliers are not a known garbage pattern, so the gate now only checks XY. Co-Authored-By: Claude Opus 4.7 <[email protected]>