non-gon
    Preparing search index...

    Class GeometryManager

    Singleton class to manage creation, storage, and operations on geometries.

    Index

    Methods

    • Performs a proximity query between two geometries using the specified method.

      Parameters

      • id1: string

        ID of the first geometry.

      • id2: string

        ID of the second geometry.

      • Optionalmethod: string

        Optional method string to define query type.

      Returns boolean

      Boolean result of the proximity query.

    • Creates a geometry based on type and parameters, stores it and returns its mesh.

      Parameters

      • type: GeometryType2D

        The type of geometry (2D).

      • id: string

        Unique identifier for the geometry.

      • params: any

        Parameters for the geometry construction.

      Returns void

      A THREE.Mesh or THREE.Line object representing the geometry.

    • Creates a geometry based on type and parameters, stores it and returns its mesh.

      Parameters

      • type: GeometryType3D

        The type of geometry (3D).

      • id: string

        Unique identifier for the geometry.

      • params: any

        Parameters for the geometry construction.

      Returns void

      A THREE.Mesh or THREE.Line object representing the geometry.

    • Returns all stored geometries.

      Returns any[]

      An object containing all geometries keyed by their IDs.

    • Retrieves a geometry by ID.

      Parameters

      • id: string

        Identifier of the geometry to retrieve.

      Returns any

      The geometry object or undefined if not found.

    • Retrieves a geometry mesh by ID and color.

      Parameters

      • id: string

        Identifier of the geometry to retrieve.

      • color: number

        Color for the mesh material.

      • Optionaltype: string

        Optional type of geometry (line or mesh).

      • Optionalwidth: number

      Returns any

      A THREE.Mesh or THREE.Line object representing the geometry.