How gumyr/build123d works
Main Components
a. Core Framework Components:
• Builders Layer (build_line.py, build_part.py, build_sketch.py)
• Objects Layer (objects_curve.py, objects_part.py, objects_sketch.py)
• Operations Layer (operations_generic.py, operations_part.py, operations_sketch.py)
• Geometry Engine (geometry.py, topology.py)
• Import/Export System (importers.py, exporters.py, exporters3d.py)
b. Supporting Components:
• Meshing System (mesher.py)
• Joint System (joints.py)
• Persistence Layer (persistence.py)
• Packing Utility (pack.py)
• Drafting System (drafting.py)
┌─────────────────────────────────────────────────────┐
• User Interface │
• (Python API with Context Managers) │
• ┤
• Builder Layer │
• (BuildLine, BuildPart, BuildSketch) │
• ┤
• Objects Layer │
• (Curve, Part, Sketch Objects) │
• ┤
• Operations Layer │
• (Generic, Part, Sketch Operations) │
• ┤
• Core Geometry Engine │
• (OpenCascade Integration, Topology, Geometry) │
• ┘
Component Relationships
• Side connections for utilities (Import/Export, Meshing, Joints)
Additional Elements
• Testing infrastructure
• Documentation system
• Example repository
• External tool integration
Implementation Notes
• The stateful context manager architecture
• The separation between geometric operations and their representation
• The extensible nature of the framework
• The integration with OpenCascade
• The support for both 2D and 3D modeling