Skip to main content

GeometryTools

Index

Constructors

constructor

Methods

publiccreateLine

  • createLine(id: string, origin: Vector3, target: Vector3, color: Color4): LinesMesh
  • Parameters

    • id: string
    • origin: Vector3
    • target: Vector3
    • color: Color4

    Returns LinesMesh

publiccreateMeshWireframe

  • createMeshWireframe(mesh: BimIfcMesh, inWorldSpace?: boolean, color: Color4): LinesMesh[]
  • Parameters

    • mesh: BimIfcMesh
    • inWorldSpace: boolean = true
    • color: Color4

    Returns LinesMesh[]

publiccreateRay

  • createRay(id: string, ray: Ray, color: Color3): RayHelper
  • Parameters

    • id: string
    • ray: Ray
    • color: Color3

    Returns RayHelper

publiccreateSphere

  • createSphere(id: string, origin: Vector3, size: number, segments?: number): Mesh
  • Parameters

    • id: string
    • origin: Vector3
    • size: number
    • segments: number = 4

    Returns Mesh

publiccreateStartDisc

  • createStartDisc(id: string, origin: Vector3, normal: Vector3, size: number, segments?: number): Mesh
  • Parameters

    • id: string
    • origin: Vector3
    • normal: Vector3
    • size: number
    • segments: number = 6

    Returns Mesh

publicupdateLine

  • updateLine(instance: LinesMesh, origin: Vector3, target: Vector3, color: Color4): LinesMesh
  • Parameters

    • instance: LinesMesh
    • origin: Vector3
    • target: Vector3
    • color: Color4

    Returns LinesMesh

publicviewObjectWireFrame

  • viewObjectWireFrame(object: BimIfcObject, color: Color4): LinesMesh[][]
  • Parameters

    Returns LinesMesh[][]