How mozgan/rch works
RCH is a header-only C++ library for producing deterministic point-cloud orderings, accompanied by command-line tools and research workflows. Its main path reads indexed 3D points, estimates a robust frame, assigns per-axis bit depths, quantizes coordinates, and sorts curve keys into a permutation. A separate documented application workflow prepares paged layouts and runs spatial-window queries. The graph also captures synthetic benchmark generation and measurement. Some algorithm modules and application internals were not excerpted; their links are omitted where the available evidence does not establish calls.
Main entry points: orderer.hpp Ordering API · det_mcd.hpp DetMCD estimator · rch_application_workflow.cpp Application workflow CLI · run_application_query_smoke.py Query smoke runner
Components 28
Ordering library
- XYZ parser
include/rch/io/xyz_parse.hpp - Ordering API
include/rch/orderings/orderer.hpp - 3D primitives
include/rch/core/matrix3.hpp - Output digest
include/rch/core/sha256.hpp - Order CLI
src/cli/rch_order.cpp
Robust geometry
- Principal frame
include/rch/frames/robust_principal_frame.hpp - Eigen solver
include/rch/frames/eigen3x3.hpp - DetMCD estimator
include/rch/robust/det_mcd.hpp - Initial estimators
include/rch/robust/initial_estimators.hpp - MCD correction
include/rch/robust/mcd_correction.hpp - Median MAD
include/rch/robust/median_mad.hpp - Regularized MCD
include/rch/robust/mrcd.hpp - OGK estimator
include/rch/robust/ogk.hpp
Curve encoding
- Bit allocation
include/rch/curves/bit_allocation_occupancy.hpp - Bit budget
include/rch/curves/bit_budget.hpp - Quantization
include/rch/curves/quantization.hpp - Compact Hilbert
include/rch/curves/hilbert3_compact.hpp
Paged queries
- Application workflow CLI
src/cli/rch_application_workflow.cpp - Page file
include/rch/application/page_file.hpp - Page directory
include/rch/application/page_directory.hpp - Window query
include/rch/application/window_query.hpp - Layout policies
experiments/application_layouts.py
Research workflows
- Synthetic generators
data/synthetic/generators/common.py - Benchmark matrix
experiments/runners/run_matrix.py - Query smoke runner
experiments/runners/run_application_query_smoke.py - Query analysis
analysis/scripts/analyze_application_query_metrics.py - Dataset converter
scripts/convert_dataset.py
Other components
- Library user
Connections 26
- Library user → Ordering API: orders points
README.md - Order CLI → XYZ parser: parses coordinates
src/cli/rch_order.cpp - Order CLI → Ordering API: requests ordering
src/cli/rch_order.cpp - Ordering API → Principal frame: estimates frame
include/rch/orderings/orderer.hpp - Ordering API → Bit allocation: allocates bits
include/rch/orderings/orderer.hpp - Ordering API → Quantization: quantizes points
include/rch/orderings/orderer.hpp - Ordering API → Compact Hilbert: sorts curve keys
include/rch/orderings/orderer.hpp - Ordering API → Output digest: hashes result
include/rch/orderings/orderer.hpp - Principal frame → DetMCD estimator: uses estimator
- DetMCD estimator → Initial estimators: initializes subsets
include/rch/robust/det_mcd.hpp - DetMCD estimator → MCD correction: corrects estimate
include/rch/robust/det_mcd.hpp - DetMCD estimator → Median MAD: uses robust scales
include/rch/robust/det_mcd.hpp - DetMCD estimator → Eigen solver: solves eigenproblem
include/rch/robust/det_mcd.hpp - Regularized MCD → DetMCD estimator: reuses estimator
include/rch/robust/mrcd.hpp - Bit allocation → Bit budget: checks budget
include/rch/curves/bit_allocation_occupancy.hpp - Compact Hilbert → Bit budget: uses bit budget
include/rch/curves/hilbert3_compact.hpp - Application workflow CLI → XYZ parser: parses coordinates
src/cli/rch_application_workflow.cpp - Application workflow CLI → Ordering API: computes ordering
src/cli/rch_application_workflow.cpp - Application workflow CLI → Page directory: prepares pages
src/cli/rch_application_workflow.cpp - Application workflow CLI → Window query: runs queries
src/cli/rch_application_workflow.cpp - Page directory → Page file: uses page storage
include/rch/application/page_directory.hpp - Window query → Page file: reads candidate pages
include/rch/application/window_query.hpp - Query smoke runner → Dataset converter: uses converted data
experiments/runners/run_application_query_smoke.py - Query smoke runner → Layout policies: validates layouts
experiments/runners/run_application_query_smoke.py - Synthetic generators → Benchmark matrix: supplies point clouds
experiments/runners/run_matrix.py - Query smoke runner → Query analysis: produces query artifacts