Skip to content

v0.0.1

Choose a tag to compare

@carlopav carlopav released this 27 Jun 14:29

bonsai_salad v0.0.1

First release. Contains two tools:

sheets_to_pdf

Export Bonsai drawing sheets to PDF directly from Blender.

ifc_dxf

Pure-Python IFC → DXF exporter (ezdxf + shapely + ifcopenshell), no Rust or OCC required.

Features:

  • Bucket A: 2D native plan representations (IfcMappedItem, IfcIndexedPolyCurve, IfcTrimmedCurve, arcs, ellipses) → exact DXF LINE/ARC/CIRCLE/ELLIPSE entities, no tessellation
  • Bucket B: wall sections from IfcExtrudedAreaSolid via Shapely — LWPOLYLINE outline + HATCH solid fill, openings subtracted
  • Slab occlusion: elements hidden under floor slabs (XY footprint check, multi-building safe)
  • Overhead windows/doors: fill elements above cut plane re-added after frustum culling, drawn on IfcWindow_Overhead / IfcDoor_Overhead layers (dashed)
  • Block naming via GlobalId (unique), BYBLOCK colour/linetype/lineweight on block entities
  • Layer styles via layer_styles.json (ACI color, lineweight, linetype)
  • Only layers actually used in the drawing are written to the DXF
  • $LTSCALE from EPset_Drawing.Scale (e.g. 1/100 → 0.01)
  • Zoom extents set automatically on open