non-gon
    Preparing search index...

    Interface IGeometry3D

    interface IGeometry3D {
        center: Vector3;
        geometry: any;
        rotation: Vector3;
        segments: number;
        type: GeometryType3D;
        getCenter(): Vector3;
        getGeometry(): any;
        getRotation(): Vector3;
        getSegments(): number;
        getType(): GeometryType3D;
        ProximityQuery(
            geometry: IGeometry3D | IGeometry2D,
            method?: string,
        ): boolean;
        ShortestDistance(geometry: IGeometry3D | IGeometry2D): [Vector3, Vector3];
    }

    Implemented by

    Index

    Properties

    center: Vector3
    geometry: any
    rotation: Vector3
    segments: number

    Methods

    • Function to get the geometry This function calculates each point of the geometry and returns a BufferGeometry object.

      Returns any

      The geometry of the object.

    • Retrieves the segments of the geometry.

      Returns number

      The number of segments in the geometry.

    • Checks if the current geometry is overlapping or in close proximity to another geometry.

      Parameters

      • geometry: IGeometry3D | IGeometry2D

        The geometry to compare against. Can be either a 3D geometry implementing the IGeometry3D interface or a 2D geometry implementing the IGeometry2D interface.

      • Optionalmethod: string

        (Optional) The algorithm or method to use for the proximity query. If not provided, a default method is used.

      Returns boolean

      True if the geometries are overlapping or in close proximity, false otherwise.

    • Calculates the Shortest distance between the current geometry and another geometry.

      Parameters

      • geometry: IGeometry3D | IGeometry2D

        The geometry to compare against. Can be either a 3D geometry implementing the IGeometry3D interface or a 2D geometry implementing the IGeometry2D interface.

      Returns [Vector3, Vector3]

      An array containing two points:

      • The closest point on the current geometry.
      • The closest point on the input geometry.