How inconvergent/differential-line works
Differential Line is a procedural line-growth simulator and visualization tool. Its main workflow initializes a line, repeatedly moves its vertices and inserts points—often prioritizing sharply curved segments—then renders or exports the evolving shape. The README also describes alternate starting shapes and 3D-like outlines; the main scripts provide animation, detail, and line-oriented variants. The Cython engine and segment implementation are present in the tree but were not sampled, so their internal responsibilities and relationships are shown only at the level supported by the README or visible calls.
Main entry points: differentialLine.pyx Line simulation · growth.py Point insertion · show.py Shape rendering · main_ani.py Animation driver
Components 15
Simulation drivers
- Animation driver
main_ani.py - Batch driver
main.py - Detail animation
main_detail_ani.py - Line variant
main_line.py - Line animation
main_line_ani.py
Growth algorithm
- Point insertion
modules/growth.py
Rendering and export
- Shape rendering
modules/show.py - Stats and export
modules/helpers.py
Geometry engine
- Line simulation
src/differentialLine.pyx - Segment geometry
src/segments.pyx
Other components
- User
- iutils renderer
- iutils OBJ export
- Rendered image
- OBJ geometry
Connections 28
- User → Animation driver: runs
README.md - Animation driver → Line simulation: initializes and updates
main_ani.py - Animation driver → Point insertion: selects insertions
main_ani.py - Point insertion → Line simulation: splits edges
modules/growth.py - Animation driver → Shape rendering: renders coordinates
main_ani.py - Shape rendering → iutils renderer: draws with
modules/show.py - iutils renderer → Rendered image: writes image
- Animation driver → Stats and export: exports geometry
main_ani.py - Stats and export → iutils OBJ export: exports OBJ
modules/helpers.py - iutils OBJ export → OBJ geometry: writes geometry
- User → Batch driver: runs
README.md - Batch driver → Line simulation: initializes and updates
main.py - Batch driver → Point insertion: selects insertions
main.py - Batch driver → Shape rendering: renders coordinates
main.py - Batch driver → Stats and export: exports geometry
main.py - User → Detail animation: runs
- Detail animation → Line simulation: initializes and updates
main_detail_ani.py - Detail animation → Point insertion: selects insertions
main_detail_ani.py - Detail animation → Shape rendering: renders detail
main_detail_ani.py - User → Line variant: runs
- Line variant → Line simulation: initializes and updates
main_line.py - Line variant → Point insertion: selects insertions
main_line.py - Line variant → Shape rendering: renders coordinates
main_line.py - User → Line animation: runs
- Line animation → Line simulation: initializes and updates
main_line_ani.py - Line animation → Point insertion: selects insertions
main_line_ani.py - Line animation → Shape rendering: renders coordinates
main_line_ani.py - Line simulation → Segment geometry: uses geometry