fix: close remaining CAD delivery review gaps
This commit is contained in:
@@ -406,9 +406,9 @@ def setback_cap_polys(spec, fk, fl, own_polys):
|
||||
continue
|
||||
upper.extend(ot.get("footprint", {}).get("polygons", []))
|
||||
own_u = _shapely_union(own_polys)
|
||||
# 1.3 suits colonnade buildings (A208); ordinary facades want ~0.1 or the
|
||||
# cap ring reads as a slab overhanging every floor. Config: cap_buffer.
|
||||
buf = float(cfg.get("cap_buffer", 1.3))
|
||||
# Ordinary facades default to a small tolerance. Colonnade buildings such
|
||||
# as A208 must explicitly set cap_buffer around 1.3 m.
|
||||
buf = float(cfg.get("cap_buffer", 0.1))
|
||||
if not upper:
|
||||
# top of a basement stack -> cap the WHOLE footprint (ground / podium deck over parking)
|
||||
if grp == "BASE" and own_u is not None:
|
||||
@@ -421,7 +421,9 @@ def setback_cap_polys(spec, fk, fl, own_polys):
|
||||
ring = own_u.buffer(buf).difference(up_u.buffer(0.05))
|
||||
except Exception:
|
||||
return []
|
||||
return _shapely_to_polys(ring, min_area=3.0)
|
||||
# Keep thin 0.1 m default cap rings on small buildings; this geometry is
|
||||
# already constrained by validated floor footprints, not raw CAD noise.
|
||||
return _shapely_to_polys(ring, min_area=0.25)
|
||||
|
||||
|
||||
def floor_group(fk, cfg=None):
|
||||
|
||||
Reference in New Issue
Block a user