GeometryGeneratorPlugin

Geometry generator plugin to create updatable parametric objects/geometries. Includes support for several primitive types from three.js

Hierarchy

  • AViewerPluginSync<"">
    • GeometryGeneratorPlugin

Constructors

  • Creates THREE.EventDispatcher | EventDispatcher object.

    Returns GeometryGeneratorPlugin

Properties

_dirty: boolean = false
_viewer?: ThreeViewer
_viewerListeners: PartialRecord<"dispose" | "*" | "update" | "preRender" | "postRender" | "preFrame" | "postFrame" | "addPlugin" | "removePlugin" | "renderEnabled" | "renderDisabled", ((e) => void)> = {}

Type declaration

    • (e): void
    • Parameters

      • e: IViewerEvent

      Returns void

constructor: typeof AViewerPluginSync & typeof AViewerPlugin
defaultGeometryClass: Class<BufferGeometry<NormalBufferAttributes, Event, string>> = BufferGeometry2
defaultMaterialClass: Class<IMaterial<IMaterialEvent<IMaterialEventTypes>, IMaterialEventTypes>> = PhysicalMaterial
enabled: boolean = true
generators: Record<string, GeometryGenerator<any>> = ...
toJSON: any = undefined
uiConfig: {
    children: (() => {
        label: string;
        type: string;
        uuid: string;
        value: (() => Promise<void>);
    }[])[];
    label: string;
    type: string;
} = ...

Type declaration

  • children: (() => {
        label: string;
        type: string;
        uuid: string;
        value: (() => Promise<void>);
    }[])[]
  • label: string
  • type: string
OldPluginType?: string
PluginType: "GeometryGeneratorPlugin" = 'GeometryGeneratorPlugin'

Accessors

Methods

  • Parameters

    • e: IViewerEvent

    Returns IViewerEvent

  • Parameters

    • Optional prefix: string

    Returns string

  • Returns ISerializedConfig | Record<string, never>

  • Parameters

    • state: any

    Returns Promise<void>

Generated using TypeDoc