forked from 1b-agent/opencadstudio-upstream
build_geos only turned Line/Arc/Circle/Ray/XLine/Ellipse/Spline into cutting-edge geometry, so a polyline contributed no boundary and a line could not be trimmed (or extended) against it — even though trimming the polyline itself against lines already worked. Explode each polyline (LwPolyline / Polyline / Polyline2D / Polyline3D) into its Line + Arc segments and add them as boundaries, tagged with the polyline's handle so the click-target self-exclusion still holds. Factored the per-entity Geo build into geo_from_entity and exposed explode_polyline_segments. Co-Authored-By: Claude Opus 4.8 <[email protected]>