How grilled-swampert/polyline-blender-addon works
Project type and purpose
• From the file‐tree and naming conventions, this is a Python-based graphics/drawing plugin (very reminiscent of a Blender add-on):
• It has “operators” and “panels” (typical for an event-driven UI within a host application).
• It generates polylines, arcs, helices, splines, checks collisions, and syncs endpoints.
• The purpose is to let users interact via GUI panels, invoke operators that compute geometric point sequences, store state, and render those polylines in real time.
File structure
• Top-level:
• main.py – registers the add-on or entry point
• drawing/ – modules that actually render geometry (draw_polylines.py, sync_endpoint_timer.py)
• operators/ – user-action handlers (operators/main.py)
• panels/ – UI definitions (main_panel.py, list_panel.py, points_panel.py)
• properties/ – definitions of UI properties and list items (polylinelistitem.py)
• structures/ – core data models (structures/main.py)
• utility/ – helper functions to generate geometric points and manage global state (generate_*.py, check_collision.py, endpoint_positions.py, global_storage.py)
• No build scripts; deployment is by installing the Python package or dropping into the host’s add-on folder.