World
World graph
Register an element in the kernel world graph.
Last modified on October 6, 2026
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Register an element in the kernel world graph.
import { addElementToWorldGraph, addOpenElementToWorldGraph } from '@opengeometry/floorkit';
function addElementToWorldGraph(
graph: WorldGraph,
element: WorldGraphElement,
placement: WorldGraphNodePlacement,
): ElementWorldGraphReport;
function addOpenElementToWorldGraph(
graph: WorldGraph,
element: OpenElement,
placement: WorldGraphNodePlacement,
): OpenElementWorldGraphReport;
type WorldGraphElement = THREE.Object3D & PlanVectorExportable;
interface WorldGraphNodePlacement {
id: string;
parent?: string;
}
interface ElementWorldGraphReport {
nodeId: string;
partNodeIds: string[];
unsupportedPartIds: string[];
}
type OpenElementWorldGraphReport = ElementWorldGraphReport;