How david-feldt/breptile works
breptile turns mesh files or dimensioned drawings into editable STEP BREP models, with verification and visualization as companion workflows. Mesh conversion is exposed through the main CLI; drawing conversion has a staged CLI and pipeline, including a deliberate review handoff for raster inputs. The graph includes the documented mesh reconstruction stages and drawing capabilities, but sampled source excerpts are partial, so some internal mesh-stage wiring is omitted rather than inferred.
Main entry points: drawing/pipeline.py Drawing Orchestration · breptile/pipeline.py Mesh Pipeline · verify.py Drawing Verification · ir.py Drawing IR
Components 24
Mesh Conversion
- Mesh Pipeline
breptile/pipeline.py - Mesh Loading
breptile/mesh.py - Region Fitting
breptile/segment.py - BREP Geometry
breptile/brep.py - STEP Export
breptile/export.py
Drawing to CAD
- Drawing Orchestration
breptile/drawing/pipeline.py - Drawing Extraction
breptile/drawing/extract.py - Drawing IR
breptile/drawing/ir.py - Recipe Reconstruction
breptile/drawing/reconstruct.py - Parametric Recipe
breptile/drawing/recipe.py - Recipe Execution
breptile/drawing/execute.py - Drawing Verification
breptile/drawing/verify.py - Projection and Measures
breptile/drawing/oracle.py - IR Synthesis
breptile/drawing/synth.py
Verification and Viewing
- Mesh Verification
breptile/verify.py - Static Visualization
breptile/visualize.py - Browser CAD Viewer
breptile/browser_view.py
User Interfaces
- Main CLI
breptile/cli.py - Drawing CLI
breptile/drawing/cli.py
Other components
- Engineer
- STEP Model
- Mesh File
- Drawing File
- Human or Agent Review
Connections 36
- Engineer → Main CLI: runs command
- Main CLI → Mesh Pipeline: converts mesh
- Mesh Pipeline → Mesh Loading: loads mesh
- Mesh Pipeline → Region Fitting: fits regions
- Mesh Pipeline → BREP Geometry: builds geometry
- Mesh Pipeline → STEP Export: writes STEP
- Mesh Pipeline → Mesh Verification: optionally verifies
- Mesh Loading → Mesh File: reads
- STEP Export → STEP Model: writes
- Engineer → Drawing CLI: runs draw command
- Drawing CLI → Drawing Orchestration: dispatches stages
- Drawing Orchestration → Drawing Extraction: extracts drawing
- Drawing Orchestration → Drawing IR: loads or saves
- Drawing Extraction → Drawing File: reads
- Drawing Extraction → Drawing IR: produces IR
- Drawing Orchestration → Recipe Reconstruction: reconstructs recipe
- Recipe Reconstruction → Drawing IR: reads
- Recipe Reconstruction → Parametric Recipe: produces recipe
- Drawing Orchestration → Recipe Execution: builds model
- Recipe Execution → Parametric Recipe: executes operations
- Drawing Orchestration → STEP Model: writes STEP
- Drawing Orchestration → Drawing Verification: verifies result
- Drawing Verification → Projection and Measures: projects and measures
- Drawing Verification → STEP Model: reads model
- Drawing Verification → Drawing IR: compares evidence
- Drawing Verification → Parametric Recipe: checks dimensions
- Drawing Orchestration → Human or Agent Review: requests raster review
- Engineer → IR Synthesis: requests synthesis
- IR Synthesis → Recipe Execution: builds source model
- IR Synthesis → Projection and Measures: projects views
- IR Synthesis → Drawing IR: generates IR
- Engineer → Static Visualization: requests preview
- Engineer → Browser CAD Viewer: opens viewer
- Static Visualization → Mesh File: loads mesh
- Static Visualization → STEP Model: loads STEP
- Browser CAD Viewer → STEP Model: serves model view