Skip to main content

Module query

Module query 

Source
Expand description

Spatial query primitives over an in-progress or completed ShapeModel.

Currently provides oriented-bounding-box (OBB) overlap tests against the emitted terminals. Used internally by the IfClear / IfOccluded grammar ops and exposed publicly via ShapeModel::query so downstream tools can filter, count, or audit terminals after derivation.

The overlap test is a true OBB-vs-OBB separating-axis-theorem (SAT) check treating each scope as a non-empty box, with thin face scopes (size.z = 0, size.y = 0, etc.) given a tiny epsilon thickness so they still produce finite separating-axis projections.

Structs§

TerminalQuery
Read-only spatial query view over a ShapeModel.

Functions§

obb_overlap
Tests whether two OBBs overlap using the Separating Axis Theorem.