Skip to main content

Sections

A component to create and manage arbitrary sections for BIM models.

Extends

  • Component

Implements

  • Disposable

Properties

current

current: null | Section = null

The current section that is being navigated.


list

list: Map<string, Section>

All the created sections.


offset

offset: number = 100

The default offset of the camera to the clipping plane.


onDisposed

readonly onDisposed: Event<unknown>

OBC.Disposable.onDisposed

Implementation of

OBC.Disposable.onDisposed


onExited

readonly onExited: Event<void>

Event that fires after exiting the section navigation mode.


onNavigated

readonly onNavigated: Event<object>

Event that fires after navigating to ta section.

Type declaration

id

id: string


planeType

readonly planeType: "section" = "section"

The plane type for the clipping planes created by this component.


world?

optional world: World

The current world where the sections are being created.


uuid

static readonly uuid: "45b41ba3-7bb8-4e08-909f-e0fa87973965"

A unique identifier for the component. This UUID is used to register the component within the Components system.

Methods

create()

create(data): Section

Generates a section with the given data.

Parameters

ParameterTypeDescription
dataobjectThe required data to create a section.
data.idstringThe unique identifier of the section.
data.name?stringThe human-readable name of the section.
data.normalVector3The unit vector that describes the orientation of the clipping plane.
data.offset?numberThe offset of the camera to the section.
data.pointVector3The 3D point where the section plane lies.
data.type?stringThe type to apply to the created clipping plane.

Returns

Section


delete()

delete(id): void

Deletes the section with the given ID.

Parameters

ParameterTypeDescription
idstringThe identifier whose section to delete.

Returns

void


dispose()

dispose(): void

OBC.Disposable.onDisposed

Returns

void

Implementation of

OBC.Disposable.dispose


exit()

exit(animate): Promise<void>

Exits the section view mode.

Parameters

ParameterTypeDefault valueDescription
animatebooleanfalseWhether to animate the transition.

Returns

Promise<void>


goTo()

goTo(id, animate): Promise<void>

Goes to the section with the given ID.

Parameters

ParameterTypeDefault valueDescription
idstringundefinedThe identifier whose section to delete.
animatebooleanfalseWhether to animate the transition.

Returns

Promise<void>