Home Reference Source
import {Clipmap} from 'rabbit-hole'
public class | source

Clipmap

Extends:

three~EventDispatcher → Clipmap

A 3D geometry clipmap.

Finds world octants that are close to the viewer and arranges them in concentric LOD shells. Octants that leave or enter a shell are reported for further processing.

Constructor Summary

Public Constructor
public

Constructs a new clipmap.

Member Summary

Public Members
public

position: Vector3

The current view position.

public

The world octree.

Method Summary

Public Methods
public

clear()

Clears this clipmap.

public

Generates voxel data for the cells in the current scene and contours them to extract a polygonal mesh.

public

update(camera: PerspectiveCamera)

Updates the clipmap.

Public Constructors

public constructor(world: WorldOctree) source

Constructs a new clipmap.

Params:

NameTypeAttributeDescription
world WorldOctree

A world octree.

Public Members

public position: Vector3 source

The current view position.

public world: WorldOctree source

The world octree.

Public Methods

public clear() source

Clears this clipmap.

public process() source

Generates voxel data for the cells in the current scene and contours them to extract a polygonal mesh.

public update(camera: PerspectiveCamera) source

Updates the clipmap.

Params:

NameTypeAttributeDescription
camera PerspectiveCamera

A camera.