An analysis engine for identifying golden sections and harmonic ranges.
geometor.divine is an analysis engine for identifying golden sections and harmonic ranges. While geometor.model builds the geometry, divine observes it, searching for hidden patterns, proportions, and relationships.
Its primary mission is to identify instances of the Divine Proportion (the Golden Ratio,
- Golden Section Analysis: Automatically detects segments cut in the golden ratio.
- Harmonic Ranges: Identifies sets of collinear points that form harmonic ranges.
- Pattern Recognition: Groups related elements into chains and families, revealing the organic growth of the construction.
- Integration: Designed to plug directly into
geometor.modeland stream results togeometor.explorer.
pip install geometor-divinedivine works by analyzing a Model instance.
from geometor.model import Model
from geometor.divine import analyze_model
# Load or create a model
model = Model("pentagon")
# ... (construction logic) ...
# Run analysis
analysis = analyze_model(model)
# Inspect results
print(f"Golden Sections found: {len(analysis.golden_sections)}")
for section in analysis.golden_sections:
print(section)- Source Code: https://github.com/geometor/divine
- Issues: https://github.com/geometor/divine/issues
- GEOMETOR Model: The symbolic engine being analyzed.
- GEOMETOR Explorer: The interface for viewing the analysis.