> ## 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.

# createProjectPhysicalView

> Build the 3D scene and the camera of one saved section or elevation.

## Import

```typescript theme={null}
import { createProjectPhysicalView } from '@opengeometry/floorkit';
```

## Signature

```typescript theme={null}
function createProjectPhysicalView(
  project: ProjectFile,
  viewId: string,
  options?: DrawProjectViewOptions,
): ProjectPhysicalView;
```

## Parameters

<ParamField path="project" type="ProjectFile" required />

<ParamField path="viewId" type="string" required />

<ParamField path="options" type="DrawProjectViewOptions">
  Default: `&#123;&#125;`.
</ParamField>

## Returns

```typescript theme={null}
ProjectPhysicalView;
```

## Types

### ProjectPhysicalView

A detached presentation owns its Three resources after native compilation is released.

```typescript theme={null}
interface ProjectPhysicalView {
  scene: THREE.Scene;
  readonly sourceByMesh: ReadonlyMap<THREE.Object3D, readonly DrawingSourceRef[]>;
  camera: THREE.OrthographicCamera;
  volume: PhysicalViewVolume;
  dispose(): void;
}
```

<ResponseField name="scene" type="THREE.Scene" required />

<ResponseField name="sourceByMesh" type="ReadonlyMap<THREE.Object3D, readonly DrawingSourceRef[]>" required>
  Authored inspection references for each scene mesh; cleared on disposal.
</ResponseField>

<ResponseField name="camera" type="THREE.OrthographicCamera" required />

<ResponseField name="volume" type="PhysicalViewVolume" required />

## Related

* [`DrawingSourceRef`](/floorkit/api/drawings/draw-project-view#drawingsourceref)
* [`DrawProjectViewOptions`](/floorkit/api/drawings/draw-project-view#drawprojectviewoptions)
* [`PhysicalViewVolume`](/floorkit/api/drawings/view-markers-and-level-labels#physicalviewvolume)
* [`ProjectFile`](/floorkit/api/exports/project-file#projectfile)


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