How zecruel/cadzinho works
Main System Components
a) User Interface Layer
• GUI components (based on /src/gui*.c files)
• Toolbox, file operations, and drawing tools interfaces
• Nuklear UI framework integration (nuklear.h)
b) Core CAD Engine Layer
• Drawing and Geometry Processing (/src/dxf*.c files)
• Math Operations (/src/dxf_math.c)
• Entity Management (/src/dxf_ent.c)
• Graphics Rendering (/src/draw_gl.c, /src/graph.c)
c) File Operations Layer
• DXF File Handling (Import/Export)
• Multiple Export Formats (PDF, SVG, PS, images)
• G-code and HPGL Export capabilities
d) Extension System
• Scripting Engine (Lua-based, /script directory)
• Plugin Architecture
• Custom Tools Support
Connection Flows
Key interactions:
User Interface Layer
• ↕
Core CAD Engine
• ↕
File Operations Layer
• ↕
Storage/Export Formats
Important Details
a) External Dependencies:
• OpenGL for rendering
• SQLite for data management
• Lua for scripting
• STB libraries for image handling
• Nuklear for UI
b) File Format Support:
• DXF (primary format)
• Export formats (PDF, SVG, PS, images)
• G-code and HPGL export
c) Cross-Platform Support:
• Platform-specific components (Windows, Linux, macOS, Web/Emscripten)