Date: 20 May 2026
Polygon field: 12 regions (66 unordered pairs), derived from the Stage 1 3x4 setup
Methodology: Coherence-based polygon stratification for measurement-space visualisation
Dataset: Run 2
Terminology bridge: configuration space names the generated set of admissible pair arrangements; measurement space names how those arrangements are comparatively located and read by coherence.
This workflow creates coherence-stratified measurement-space visualisations from pairwise relationships in a 12-region polygon field (indexed in a 3×4 layout):
- HIGH_COHERENCE_PAIRS → compatible / mutually reinforcing pair regions
- MODERATE_PAIRS → mixed / transitional pair regions
- LOW_COHERENCE_PAIRS → complementary pair regions
Together, these strata provide the methodological basis for comparing how coherence relationships behave across compatible, mixed, and complementary conditions.
This workflow starts from 12 original polygon regions and compares how they behave when measured in pairs. It first generates combinatorial geometry, then computes measurement-based summaries, then translates those summaries into graph and spatial outputs. Stage 5.5 treats each selected pair set as a network graph (nodes + edges), and Stage 6 translates that graph logic into comparative spatial sections and rotational reads.
Glossary reference: GLOSSARY_CORE_TERMS.html
gephi_nodes.csv / gephi_edges.csv for graph use.Draw the 12 base polygons that everything else in the workflow depends on.
Location: Illustrator document
Task: Create the initial polygon field (12 regions) using a 3×4 index layout
Output:
- Polygon-field document (12 indexed regions) with hand-drawn/designed polygons
- Ready for data extraction
Turn the Stage 1 polygons into all pair combinations and export the coordinate data used downstream.
Script:
DOCUMENTATION_AND_WORKFLOWS/THEORY/INTENDING_TOPOLOGY_WORKFLOW/scripts/01_1_COMBINATORICS.jsx
Environment: Adobe Illustrator
Task: Extract polygon pair combinations from the current polygon field
How to Run:
1. Open your polygon-field document in Illustrator
2. File → Scripts → Other Script...
3. Navigate to: DOCUMENTATION_AND_WORKFLOWS/THEORY/INTENDING_TOPOLOGY_WORKFLOW/scripts/01_1_COMBINATORICS.jsx
4. Run script (leave the prompt blank to run generation mode)
Output (all saved to ~/Desktop/Generated_Combinations/):
- One .ai file per combination (e.g. Vector_1(0,1).ai)
- mapping.csv — maps each saved filename to its source polygon indices and count
- vectors_coordinates.csv — vector endpoint coordinates (x1,y1,x2,y2) for each polygon in each combination; one row per combination
CSV note: The script writes Unix (\n) line endings. All existing files generated before May 2026 had Mac Classic (\r) line endings and were batch-converted. The JSX is patched so future runs are correct.
Cell-region label note (important for Stage 3c): when creating per-cell folders after Stage 2, prefer canonical r{R}c{C} naming. Transposed c{C}r{R} is also accepted. If you use custom labels (for example A1, north_west, 01), provide a label map in Stage 3c so those folders resolve to canonical cells before analysis.
Next: Stage 3 metrics calculation and Stage 4 coherence-analysis input preparation
Score each generated pair using the current metric settings, then split results into kept vs removed sets.
Script:
DOCUMENTATION_AND_WORKFLOWS/THEORY/INTENDING_TOPOLOGY_WORKFLOW/scripts/02_2_BATCH_PROCESS_METRICS.jsx
Environment: Adobe Illustrator
Task: Evaluate extracted pair vectors with configurable metrics and split results into kept/removed sets
How to Run:
1. Same as Stage 2
2. Path: DOCUMENTATION_AND_WORKFLOWS/THEORY/INTENDING_TOPOLOGY_WORKFLOW/scripts/02_2_BATCH_PROCESS_METRICS.jsx
Output (default generated-layer mode):
- Kept/removed vector outputs based on current metric settings
- generated_layer_subtractive_log.csv in ~/Desktop/Generated_Combinations/
Optional batch-folder mode output:
- Passing files saved to ~/Desktop/centroid_batches/
Build visual opacity layers that make pair frequency and coherence patterns easier to see.
Environment: Adobe Illustrator
Purpose: Apply opacity- and frequency-based visual treatments in measurement space over the configuration space generated by 01_1_COMBINATORICS.jsx. These scripts read the combinations already placed in the document and create layered visualisations that expose three measured dimensions: vector frequency, coherence values, and coherence-strength values. Run on the Generated Vectors document produced in Stage 2/3.
Scripts (run in order):
DOCUMENTATION_AND_WORKFLOWS/THEORY/INTENDING_TOPOLOGY_WORKFLOW/scripts/03b_1_ANALYZE_PAIR_COHERENCE.jsx
Reads the generated combinations and computes coherence values per pair. Produces the raw coherence data that the subsequent visualisation scripts consume.
Source data (c1r1):
- pair_coherence_analysis.json
DOCUMENTATION_AND_WORKFLOWS/THEORY/INTENDING_TOPOLOGY_WORKFLOW/scripts/03b_2_COUNT_VECTOR_FREQUENCIES.jsx
Counts source-grid-index participation across all combinations (the indices inside Vector_N(i,j)), not Vector_N sequence IDs. Output drives the frequency-based opacity layers.
Source data (c1r1):
- vector_frequencies.json
- vector_frequency_analysis.txt
DOCUMENTATION_AND_WORKFLOWS/THEORY/INTENDING_TOPOLOGY_WORKFLOW/scripts/03b_3_CREATE_FREQUENCY_LAYERS_3D.jsx
Builds opacity layers where each source grid index's visual weight corresponds to its frequency of occurrence — more frequent sources appear denser/darker. Data loading resolves in this order: explicit dataFolderPath, active-document local folders, then Desktop fallback.
DOCUMENTATION_AND_WORKFLOWS/THEORY/INTENDING_TOPOLOGY_WORKFLOW/scripts/03b_4_CREATE_COHERENCE_LAYERS.jsx
Applies opacity layers based on coherence values. Data loading uses the same resolver order as 3b-3.
DOCUMENTATION_AND_WORKFLOWS/THEORY/INTENDING_TOPOLOGY_WORKFLOW/scripts/03b_5_CREATE_COHERENCE_STRENGTH_LAYERS.jsx
Adds a further layer distinguishing the strength of coherence relationships, separate from the base coherence score. Data loading uses the same resolver order as 3b-3.
Note: These scripts are not required to continue to Stage 4 (Python analysis). They operate on the Illustrator document as a visual-output stage. Run them when you want opacity-visualised measurement-space output from a given set of combinations.
Gather per-cell CSV outputs into one numbered run folder so each analysis run stays isolated and traceable.
Script:
DOCUMENTATION_AND_WORKFLOWS/THEORY/INTENDING_TOPOLOGY_WORKFLOW/scripts/03c_consolidate_cell_csvs.py
Wrapper: ./ingest.sh (workspace-root convenience forwarder)
Environment: Terminal/Python
Task: Collect the per-cell vectors_coordinates.csv files produced by Stage 2 (one per r{R}c{C} cell), copy and rename them into the next free numbered subfolder under config/csv_exports/, and update config/cells_to_analyze.json to point at it. Stage 4 then writes its output JSON into a matching config/N/ folder.
Why this stage exists: every Stage 2 rerun produces a fresh 3×4 set of cell CSVs. Numbered run folders (1/, 2/, …) keep each run's inputs and outputs isolated so re-running Stage 4 never overwrites prior results.
Run pin note (this document): the Stage 3b c1r1 summary visuals in this workflow are intentionally aligned to run 2 lineage (NG-2 3×4 R c1r1). Keep run 2 as a fixed reference snapshot for those examples; use newer run numbers for fresh full-grid analyses.
Expected source layout (for bulk ingest):
<source_dir>/r{ROW}c{COL}/Generated_Combinations/vectors_coordinates.csv
This matches what 01_1_COMBINATORICS.jsx produces on ~/Desktop/Generated_Combinations/ once you have grouped the per-cell outputs under one parent folder.
Label-normalisation note: Stage 3c accepts both r{R}c{C} and transposed c{C}r{R} cell folder labels during ingest (for example, c1r1 is auto-normalised to canonical r1c1). It writes canonical filenames and canonical selected_cells entries, so downstream stages remain consistent.
Layout produced:
config/csv_exports/N/cell_r{R}c{C}_full_vectors_coordinates.csv ← Stage 4 input
config/N/pair_coherence_composition.json ← Stage 4 output (written by Stage 4)
where N is the next free positive integer under config/csv_exports/.
Commands:
Bulk ingest a new run (most common):
bash
./ingest.sh <source_dir>
# equivalent to:
python DOCUMENTATION_AND_WORKFLOWS/THEORY/INTENDING_TOPOLOGY_WORKFLOW/scripts/03c_consolidate_cell_csvs.py --ingest <source_dir>
Discovers every r{R}c{C} folder under <source_dir>, copies each cell's vectors_coordinates.csv into config/csv_exports/N/ with the cell_rRcC_full_… rename, creates a sibling config/N/, and rewrites the JSON config's csv_directory and selected_cells.
Add one cell at a time (accumulating a run as JSX completes per cell):
bash
python DOCUMENTATION_AND_WORKFLOWS/THEORY/INTENDING_TOPOLOGY_WORKFLOW/scripts/03c_consolidate_cell_csvs.py \
--source ~/Desktop/Generated_Combinations/vectors_coordinates.csv \
--cell r1c1 [--run N]
Defaults --run to the highest existing numbered subfolder.
Bulk ingest with explicit label mapping (recommended when Stage 2 folder names are custom):
bash
python DOCUMENTATION_AND_WORKFLOWS/THEORY/INTENDING_TOPOLOGY_WORKFLOW/scripts/03c_consolidate_cell_csvs.py \
--ingest <source_dir> \
--label-map DOCUMENTATION_AND_WORKFLOWS/THEORY/INTENDING_TOPOLOGY_WORKFLOW/config/cell_label_map.example.json
Map format is JSON { "source_label": "canonical_cell" }, where canonical cells are r{R}c{C} (or transposed c{C}r{R}, which is auto-normalised). Keep your real map in this config folder and edit it per run as needed.
One-off baseline migration (run once, only if upgrading from the flat layout):
bash
python DOCUMENTATION_AND_WORKFLOWS/THEORY/INTENDING_TOPOLOGY_WORKFLOW/scripts/03c_consolidate_cell_csvs.py \
--reorganise-baseline
Moves the existing flat baseline CSVs into config/csv_exports/1/ and the legacy config/pair_coherence_composition.json into config/1/, then updates the JSON config to csv_directory: "csv_exports/1".
Grid check: --ingest warns if the ingested grid dimensions don't match Stage 4's hardcoded (GRID_ROWS, GRID_COLS). Edit those constants in 04_analyze_polygon_region_coherence.py before running Stage 4 if they differ.
Mapping guardrails: Stage 3c fails fast if two source labels map to the same canonical cell in one ingest pass (to prevent silent cell collisions).
Run the main coherence computation across the selected run folder to generate the pair-category dataset.
Script:
DOCUMENTATION_AND_WORKFLOWS/THEORY/INTENDING_TOPOLOGY_WORKFLOW/scripts/04_analyze_polygon_region_coherence.py
Environment: Terminal/Python
Configuration: DOCUMENTATION_AND_WORKFLOWS/THEORY/INTENDING_TOPOLOGY_WORKFLOW/config/cells_to_analyze.json
Prerequisites:
- All 12 cell CSV files in the csv_directory path specified in cells_to_analyze.json
- Format: cell_[CELL]_full_vectors_coordinates.csv
- Example: cell_r1c1_full_vectors_coordinates.csv, cell_r4c3_full_vectors_coordinates.csv
- Created by Stage 3c
Configuration (canonical 3×4 run — current full-grid analysis):
Normally written for you by Stage 3c. The current canonical run is 2, so config/cells_to_analyze.json should point to csv_exports/2:
{
"analysis_config": {
"csv_directory": "csv_exports/2",
"selected_cells": [
"r1c1", "r1c2", "r1c3",
"r2c1", "r2c2", "r2c3",
"r3c1", "r3c2", "r3c3",
"r4c1", "r4c2", "r4c3"
]
}
}
csv_directory is the numbered run subfolder; re-ingesting with Stage 3c advances it to the next run number automatically.
Provenance note: this Stage 4 section references the current full 12-cell canonical run (2). The Stage 3b c1r1 summary graphics above are a pinned run-2 example for that cell's opacity/frequency branch.
Edit scripts/04_analyze_polygon_region_coherence.py (still hardcoded):
GRID_COLS = 3
GRID_ROWS = 4
How to Run:
cd <repo-root>
./analyze.sh
# equivalent to:
python3 DOCUMENTATION_AND_WORKFLOWS/THEORY/INTENDING_TOPOLOGY_WORKFLOW/scripts/04_analyze_polygon_region_coherence.py
Output:
- DOCUMENTATION_AND_WORKFLOWS/THEORY/INTENDING_TOPOLOGY_WORKFLOW/config/N/pair_coherence_composition.json, where N matches the last segment of csv_directory in the JSON config (currently config/2/...).
- DOCUMENTATION_AND_WORKFLOWS/THEORY/INTENDING_TOPOLOGY_WORKFLOW/config/N/pair_coherence_regression.png (fresh scatter + normalized regression fit, generated each run)
- DOCUMENTATION_AND_WORKFLOWS/THEORY/INTENDING_TOPOLOGY_WORKFLOW/config/N/pair_coherence_regression.svg (vector export of the same plot)
- Summarises all 66 pairwise combinations across the 12 regions, split into:
- high_coherence_compatible pairs (similarity > 0.95) — 4 pairs in current run
- moderate_mixed pairs (similarity 0.70-0.95) — 10 pairs in current run
- low_coherence_complementary pairs (similarity < 0.70) — 52 pairs in current run
- Run-2 canonical regression fit (from regression_formula, normalized diversity): Coherence Loss = -5.5567σ + 16.2611 (R² = 0.2035, n = 66, baseline coherence = 18.1743)
- Legacy comparison fit (from regression_formula_std_legacy, std-based diversity): Coherence Loss = -1.0217σ_std + 16.0248 (R² = 0.5802, n = 66)
Data Structure:
{
"pairwise_analysis": {
"high_coherence_compatible": [...],
"low_coherence_complementary": [...],
"moderate_mixed": [...]
}
}
Read Stage 4 results and create the HIGH/MODERATE/LOW pair layers plus a text extraction list.
Script:
DOCUMENTATION_AND_WORKFLOWS/THEORY/INTENDING_TOPOLOGY_WORKFLOW/scripts/05_extract_coherence_pairs.jsx
Environment: Adobe Illustrator
Input: DOCUMENTATION_AND_WORKFLOWS/THEORY/INTENDING_TOPOLOGY_WORKFLOW/config/N/pair_coherence_composition.json (selected via script prompt for run number)
Task: Read coherence data and create layer structure
How to Run:
1. Open your document in Illustrator
2. File → Scripts → Other Script...
3. Path: DOCUMENTATION_AND_WORKFLOWS/THEORY/INTENDING_TOPOLOGY_WORKFLOW/scripts/05_extract_coherence_pairs.jsx
4. When prompted, confirm or override the suggested run number (auto-filled from config/cells_to_analyze.json; current canonical run is 2)
Output:
- Three layers created in document:
- HIGH_COHERENCE_PAIRS (empty, ready for population)
- MODERATE_PAIRS (empty, ready for population)
- LOW_COHERENCE_PAIRS (empty, ready for population)
- DOCUMENTATION_AND_WORKFLOWS/THEORY/INTENDING_TOPOLOGY_WORKFLOW/config/N/polygon_pair_extraction.txt (pair list with coherence values; currently config/2/...)
What it Creates:
The script establishes the layer taxonomy for your coherence-stratified visualisation
Re-read extracted pairs as node-edge networks so you can compare structural morphology before final spatial translation.
Curated representative media set (high/moderate/low; top/side/front/oblique).
How this stage is measured:
gephi_nodes.csv.combined) from the Stage 3 measurement pass.High coherence - r1c2<>r3c3
Moderate coherence - r3c2<>r4c3
Low coherence - r1c1<>r3c1
Scripts:
DOCUMENTATION_AND_WORKFLOWS/THEORY/INTENDING_TOPOLOGY_WORKFLOW/scripts/blender_import_high_pair_combinatorics.py
DOCUMENTATION_AND_WORKFLOWS/THEORY/INTENDING_TOPOLOGY_WORKFLOW/scripts/05_5_rank_pair_compositions.py
DOCUMENTATION_AND_WORKFLOWS/THEORY/INTENDING_TOPOLOGY_WORKFLOW/scripts/blender_import_stage55_compositions.py
Environment: Blender (plus Python ranking script)
Position in workflow:
- This is a bridge stage between pair extraction and composition synthesis. It interprets pair-level structure in consideration of assemblages.
Recursive bridge loop:
- This stage is intentionally recursive: extracted pair categories are fed back through the earlier combinatorics and batch-processing steps.
- Run the loop for HIGH_COHERENCE_PAIRS, MODERATE_PAIRS, and LOW_COHERENCE_PAIRS separately, then compare the resulting network morphologies.
- Practical sequence per category: pair extraction output -> Stage 2 combinatorics (01_1_COMBINATORICS.jsx) -> Stage 3 batch processing (02_2_BATCH_PROCESS_METRICS.jsx) -> graph import/reading in Blender.
Inputs:
- DOCUMENTATION_AND_WORKFLOWS/THEORY/INTENDING_TOPOLOGY_WORKFLOW/config/N/polygon_pair_extraction.txt
- Pair combinatorics outputs (for example):
- NEW_GRID/NG-2/level_1/PAIRS (3x4 R)/cells/HIGH_COHERENCE_PAIRS/*/Generated_Combinations/gephi_nodes.csv
- NEW_GRID/NG-2/level_1/PAIRS (3x4 R)/cells/HIGH_COHERENCE_PAIRS/*/Generated_Combinations/gephi_edges.csv
- equivalent LOW_COHERENCE_PAIRS and MODERATE_PAIRS folders when available
Core output of this stage:
- 3D graph morphology per pair in Blender:
- nodes = generated vector units
- edges = pairwise relational links
- node height = metric field (combined value)
- Optional ranked composition candidates for Stage 6 handoff:
- config/N/pair_composition_ranked.json
- config/N/pair_composition_ranked.csv
Interpretive role:
- Stage 5.5 functions as an epistemic image layer: it preserves analytical structure while exposing compositional possibilities before committing to final assembly.
Convert Stage 5.5 graph structure into section-based spatial outputs for direct visual comparison.
How this stage shifts from Stage 5.5:
Representative Stage 6 exemplar set (from Stage 5.5):
- High: r1c2<>r3c3
- Moderate: r3c2<>r4c3
- Low: r1c1<>r3c1
Core sequence:
scripts/blender_generate_outer_edge_outlines.pyimages/Stage 6/{BAND}/1)r1c2<>r3c3
r3c2<>r4c3
r1c1<>r3c1
scripts/blender_generate_propagated_volume_sections.pyimages/Stage 6/{BAND}/2)r1c2<>r3c3
r3c2<>r4c3
r1c1<>r3c1
scripts/blender_render_propagated_sections_turntable.pyclips/stage6/{band}/3)Section formation note: These rotational views support a comparative spatial reading across the three exemplars. Areas of denser grouping read as more continuous section fields, while looser relations open larger intervals between groups. The emphasis is exploratory: observing how continuity, separation, and void expression vary across coherence conditions, and how those differences may inform ecological or programmatic interpretations.
r1c2<>r3c3
r3c2<>r4c3
r1c1<>r3c1
scripts/blender_generate_propagated_volume_sections_directional.py (development path)images/Stage 6/{BAND}/4)r1c2<>r3c3: add directed-mobility frames in images/Stage 6/HIGH/4r3c2<>r4c3: add directed-mobility frames in images/Stage 6/MODERATE/4r1c1<>r3c1: add directed-mobility frames in images/Stage 6/LOW/4Spec reference:
- 09_LAYER_6_SPATIAL_EXPLORATION_SPEC.html
| Aspect | HIGH_COHERENCE_PAIRS | MODERATE_PAIRS | LOW_COHERENCE_PAIRS |
|---|---|---|---|
| Pairs (Stage 4 full-grid canonical run 2) | 4 compatible pairs | 10 mixed pairs | 52 complementary pairs |
| Method | Stable combinations | Hybrid combinations | Dynamic combinations |
| Visual Character | Tighter, more uniform | Transitional | Higher contrast, more varied |
| Coherence reading | Pairs that reinforce | Pairs in tension | Pairs that complement |
| Aesthetic | More uniform | Transitional | More heterogeneous |
Total: 66 unordered pairs (C(12, 2)).
Note: This table summarizes full-grid Stage 4/5 output from run 2. The Stage 3b c1r1 visuals above are a pinned run-2 single-cell example.
config/cells_to_analyze.json points to csv_exports/2config/2/pair_coherence_composition.jsonconfig/2/polygon_pair_extraction.txt./ingest.sh <source_dir> to create the next numbered run in config/csv_exports/csv_directory was updated in cells_to_analyze.json./analyze.sh to write config/N/pair_coherence_composition.jsonconfig/N/polygon_pair_extraction.txt| File | Path |
|---|---|
| Python Analysis Script | DOCUMENTATION_AND_WORKFLOWS/THEORY/INTENDING_TOPOLOGY_WORKFLOW/scripts/04_analyze_polygon_region_coherence.py |
| JSX Extraction Script | DOCUMENTATION_AND_WORKFLOWS/THEORY/INTENDING_TOPOLOGY_WORKFLOW/scripts/05_extract_coherence_pairs.jsx |
| Configuration | DOCUMENTATION_AND_WORKFLOWS/THEORY/INTENDING_TOPOLOGY_WORKFLOW/config/cells_to_analyze.json |
| Cell CSVs | path set in cells_to_analyze.json → csv_directory (current: config/csv_exports/2/) |
| Stage 3c Consolidator | DOCUMENTATION_AND_WORKFLOWS/THEORY/INTENDING_TOPOLOGY_WORKFLOW/scripts/03c_consolidate_cell_csvs.py |
| Shell wrappers | ingest.sh and analyze.sh at the workspace root (forward to the Python scripts) |
| Illustrator Scripts | DOCUMENTATION_AND_WORKFLOWS/THEORY/INTENDING_TOPOLOGY_WORKFLOW/scripts/ |
| Output JSON | DOCUMENTATION_AND_WORKFLOWS/THEORY/INTENDING_TOPOLOGY_WORKFLOW/config/N/pair_coherence_composition.json (current canonical run: N=2) |
| Pair extraction list | DOCUMENTATION_AND_WORKFLOWS/THEORY/INTENDING_TOPOLOGY_WORKFLOW/config/N/polygon_pair_extraction.txt (current canonical run: N=2) |
| Combination mapping | Default output: ~/Desktop/Generated_Combinations/mapping.csv (can be staged into per-cell run folders) |
| Centroid coordinates | Default output: ~/Desktop/Generated_Combinations/vectors_coordinates.csv (can be staged into per-cell run folders) |
This workflow embeds analytical rigour into aesthetic choice:
The result is not just a chart—it's a visual methodology that makes the underlying coherence logic visible through the structure of the form itself.
Status: Complete workflow documented
Last Updated: 16 August 2026