How ryfn638/shapegeometrise works
Geometrise is a desktop image-approximation tool: a user chooses a target image and generation settings, starts or stops a run, and views the evolving canvas and diagnostics. Generation creates and mutates shape candidates, scores them with the CPU grader or CUDA batch grader, then projects selected shapes onto the canvas. Masks supply shape geometry; the renderer presents the canvas through a Win32/DirectX 11 and Dear ImGui interface. The README documents these capabilities; some internal connections are supported only by its architecture description or module references, not sampled call sites.
Main entry points: igGeneration.cpp Generation Manager · igWindowUI.cpp UI Controls · igShape.cpp Shape Transform · igCanvas.cpp Canvas and Image Load
Components 14
Application
- Application Entry
ImageGeometrise/src/main.cpp
Shape Generation
- Generation Manager
ImageGeometrise/src/igGeneration.cpp - Shape Transform
ImageGeometrise/src/igShape.cpp - Shape Mask
ImageGeometrise/src/igMask.cpp
Canvas and Scoring
- Canvas and Image Load
ImageGeometrise/src/igCanvas.cpp - CPU Grader
ImageGeometrise/src/igCanvasGrader.cpp - CUDA Batch Grader
ImageGeometrise/src/CUDA/igGenerationBatch.cu - Colour and Vectors
ImageGeometrise/src/igCommon.cpp
Desktop Interface
- Win32 Window
ImageGeometrise/src/UI/igWindow.cpp - UI Controls
ImageGeometrise/src/UI/igWindowUI.cpp - Dear ImGui
ImageGeometrise/3rdParty/imgui - Canvas Renderer
ImageGeometrise/src/UI/igCanvasRenderer.cpp
Other components
- User
- Target Image
Connections 23
- User → UI Controls: sets options
README.md - UI Controls → Win32 Window: opens image
README.md - Target Image → Canvas and Image Load: loads target
README.md - UI Controls → Generation Manager: starts or stops
- UI Controls → Dear ImGui: builds panels
ImageGeometrise/src/UI/igWindowUI.cpp - Application Entry → Win32 Window: creates and polls
ImageGeometrise/src/main.cpp - Application Entry → Canvas Renderer: creates and resizes
ImageGeometrise/src/main.cpp - Application Entry → UI Controls: renders frames
ImageGeometrise/src/main.cpp - UI Controls → Canvas Renderer: draws canvas
- Generation Manager → Canvas and Image Load: loads and resizes
README.md - Generation Manager → Shape Transform: creates candidates
README.md - Generation Manager → Shape Mask: selects masks
- Shape Transform → Shape Mask: samples pixels
- Generation Manager → CPU Grader: scores on CPU
README.md - Generation Manager → CUDA Batch Grader: scores on GPU
README.md - CPU Grader → Canvas and Image Load: scores against
- CPU Grader → Shape Transform: grades shape
- CUDA Batch Grader → Shape Transform: grades shape
README.md - Generation Manager → Canvas Renderer: projects selected shape
README.md - Canvas Renderer → Canvas and Image Load: owns displayed canvas
- Canvas and Image Load → Shape Transform: projects shape
ImageGeometrise/src/igCanvas.cpp - Shape Transform → Colour and Vectors: uses colour and vectors
- Shape Mask → Colour and Vectors: uses shared types