> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ploterr.com/llms.txt
> Use this file to discover all available pages before exploring further.

# World graph

> Register an element in the kernel world graph.

## Import

```typescript theme={null}
import { addElementToWorldGraph, addOpenElementToWorldGraph } from '@opengeometry/floorkit';
```

## addElementToWorldGraph

```typescript theme={null}
function addElementToWorldGraph(
  graph: WorldGraph,
  element: WorldGraphElement,
  placement: WorldGraphNodePlacement,
): ElementWorldGraphReport;
```

## addOpenElementToWorldGraph

```typescript theme={null}
function addOpenElementToWorldGraph(
  graph: WorldGraph,
  element: OpenElement,
  placement: WorldGraphNodePlacement,
): OpenElementWorldGraphReport;
```

## Types

### WorldGraphElement

```typescript theme={null}
type WorldGraphElement = THREE.Object3D & PlanVectorExportable;
```

### WorldGraphNodePlacement

```typescript theme={null}
interface WorldGraphNodePlacement {
  id: string;
  parent?: string;
}
```

### ElementWorldGraphReport

```typescript theme={null}
interface ElementWorldGraphReport {
  nodeId: string;
  partNodeIds: string[];
  unsupportedPartIds: string[];
}
```

### OpenElementWorldGraphReport

```typescript theme={null}
type OpenElementWorldGraphReport = ElementWorldGraphReport;
```

## Related

* [`OpenElement`](/floorkit/api/architecture/open-element)
* [`PlanVectorExportable`](/floorkit/api/shapes/cylinder-shape#planvectorexportable)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.