scene_service.scene_graph.geometry

What the bounding boxes alone say about a pair of scene-graph nodes, and a jitter-stable signature of that geometry for the relation cache key.

Functions

geometry_signature(hint)

Bucketed distance/overlap plus the discrete cues: equal for jitter, different after a real move.

strict_geometric_relations(a, b[, near_radius_m])

[(relation, confidence, distance_m)] from a to b, strongest first: on_top_of / under, inside / contains, else near within near_radius_m; empty when the boxes say nothing.

scene_service.scene_graph.geometry.geometry_signature(hint: GeometryHint) → str[source]

Bucketed distance/overlap plus the discrete cues: equal for jitter, different after a real move.

scene_service.scene_graph.geometry.strict_geometric_relations(a: SceneGraphNode, b: SceneGraphNode, near_radius_m: float = 1.5) → list[tuple[str, float, float]][source]

[(relation, confidence, distance_m)] from a to b, strongest first: on_top_of / under, inside / contains, else near within near_radius_m; empty when the boxes say nothing.