An arbitrarily-aligned World-space clipping plane.

See @xeokit/sdk/viewer for usage info.

Hierarchy (View Summary)

Properties

destroyed: boolean

True once this Component has been destroyed.

Don't use this Component if this is true.

dirty: boolean
id: string

ID of this SectionPlane, unique within the View.

view: View

The View to which this SectionPlane belongs.

Accessors

  • get dist(): number
  • Gets this SectionPlane's distance to the origin of the World-space coordinate system.

    This is the dot product of SectionPlane.pos and SectionPlane.dir and is automatically re-calculated each time either of two properties are updated.

    Returns number

    Distance to the origin of the World-space coordinate system.

Methods

  • Protected

    Logs an error for this component to the JavaScript console.

    The console message will have this format: [ERROR] [<component type> =<component id>: <message>

    Parameters

    • message: string

      The error message to log

    Returns void

  • Protected

    Logs a message for this component.

    The message will have this format: [LOG] [<component type> <component id>: <message>

    Parameters

    • message: string

      The message to log

    Returns void

  • Protected

    Logs a warning for this component to the JavaScript console.

    The console message will have this format: [WARN] [<component type> =<component id>: <message>

    Parameters

    • message: string

      The warning message to log

    Returns void

Events

onActive: EventEmitter<SectionPlane, boolean>

Emits an event each time SectionPlane.active changes.

onDestroyed: EventEmitter<Component, null>

Emits an event when the Component has been destroyed.

Emits an event each time SectionPlane.dir changes.

Emits an event each time SectionPlane.pos changes.