← Bungalow

Flat SIP warm-deck roof (2° south-to-north fall)

v1 AI approved Generated with ElixiFree

Create Flat SIP warm-deck roof (2° south-to-north fall), 4600.0x3800.0x142mm. half_span 3800.0mm (horizontal eave-to-ridge run — pass this value directly as the half_span argument, do NOT substitute slope_length or adjust for panel thickness). pitch_degrees 2deg (use this exact value for pitch_degrees — do NOT guess or derive from other dimensions). stock SIP-120 (use this exact ElixiFree stock key — do NOT substitute a different SIP stock). eave_overhang 400.0mm rake_overhang 300.0mm (pass both directly to PitchedRoofSlope — do NOT use default values). Bears on wall top plates: full-length contact on level south (high) and north (low) top plates and on the raked west top plate. Deck is a fl

Interfaces Provided

body (component)
◉
Agent initialized (status: waiting_for_dependencies, action: check_dependencies, delay: 10000ms)
◉
Provider: claude_code | Profile: balanced
◉
Provider updated to claude_code / balanced
◉
Starting after stagger delay (action: check_dependencies)
◉
Refreshed placement from design spec (bbox %{"x" => 4600.0, "y" => 3800.0, "z" => 142.0})
◉
Generating v1
◉
[ElixiFree] active — code_module=elixifree.sip
◉
[ElixiFree] downgrading to claude-haiku-4-5-20251001 (builder API active)
○
Calling Claude (local subscription) for code generation (claude-haiku-4-5-20251001)...
◉
Generation token budget: max_tokens=12288, thinking_budget=0 (retry_count=0)
●
Received response ( tokens)
◆
extension__flat_roof_v1.py · 44 lines
import FreeCAD
from FreeCAD import Vector, Placement, Rotation
from elixifree.domains.sip import PitchedRoofSlope

# === ANCHOR POINTS ===
ANCHOR_TOP_FACE = (2.3e3, 1.9e3, 142.0)
ANCHOR_BOTTOM_FACE = (2.3e3, 1.9e3, 0.0)
ANCHOR_FRONT_FACE = (2.3e3, 0.0, 71.0)
ANCHOR_BACK_FACE = (2.3e3, 3.8e3, 71.0)
ANCHOR_LEFT_FACE = (0.0, 1.9e3, 71.0)
ANCHOR_RIGHT_FACE = (4.6e3, 1.9e3, 71.0)
# === END ANCHOR POINTS ===

# === PARAMETERS ===
SPAN = 4.6e3          # mm — ridge length (span along X)
DEPTH = 3.8e3         # mm — half_span for mono-pitch (full building depth)
PITCH_DEG = 2.0       # degrees — south-to-north drainage fall
STOCK = "SIP-120"     # ElixiFree stock key (120mm core + 11mm faces = 142mm total)
EAVE_OVERHANG = 400.0 # mm — projection at eave (north/low end)
RAKE_OVERHANG = 300.0 # mm — projection at rake (sides)
# === END PARAMETERS ===

# === DOCUMENT ===
doc = FreeCAD.ActiveDocument or FreeCAD.newDocument("FlatRoof")

# === BUILD MONO-PITCH ROOF ===
# Mono-pitch warm-deck roof: 2° south-to-north fall, spans full building depth
slope = PitchedRoofSlope(
    ridge_length=SPAN,
    half_span=DEPTH,
    pitch_degrees=PITCH_DEG,
    stock=STOCK,
    is_south=True,
    eave_overhang=EAVE_OVERHANG,
    rake_overhang=RAKE_OVERHANG,
)

result = slope.build()
result.add_to_doc("Body")

# === FINALIZE ===
doc.recompute()
if FreeCAD.GuiUp:
    FreeCAD.Gui.ActiveDocument.ActiveView.fitAll()
◉
[ElixiFree] ✓ generated script uses elixifree imports
◉
[ElixiFree] ⚠ script imports unknown symbols: PitchedRoofSlope — possible hallucination
●
Executing in FreeCAD...
◉
StepAnalyzer failed: FreeCAD could not read STEP file: FreeCAD exception thrown (File to load not existing or not readable) — skipping
●
FreeCAD execution succeeded
●
Exported: model.stl
◉
Generation succeeded and component was auto-approved (v1)
◉
Provider updated to claude_code / balanced
◉
Provider updated to claude_code / balanced
v0.0.985