Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • GeometryHelper

Index

Constructors

constructor

Properties

Private Readonly snapTolerance

snapTolerance: 0.00001 = 0.00001

Private Readonly tolerance

tolerance: 0.00001 = 0.00001

Methods

arePointsTheSame

  • arePointsTheSame(pointA: number[], pointB: number[], tolerance: number): boolean
  • Parameters

    • pointA: number[]
    • pointB: number[]
    • tolerance: number

    Returns boolean

createLineSystem

  • createLineSystem(updatable: boolean, lines: Vector3[][]): LinesMesh

createLines

  • createLines(updatable: boolean, points: Vector3[], colors: Color4[]): LinesMesh
  • Parameters

    • updatable: boolean
    • points: Vector3[]
    • colors: Color4[]

    Returns LinesMesh

createOrUpdateSurfaceMesh

  • createOrUpdateSurfaceMesh(meshDataConverted: { indices: any[]; normals: any[]; positions: any[] }, mesh: Mesh, updatable: boolean, opacity: number, colour: string): Mesh
  • Parameters

    • meshDataConverted: { indices: any[]; normals: any[]; positions: any[] }
      • indices: any[]
      • normals: any[]
      • positions: any[]
    • mesh: Mesh
    • updatable: boolean
    • opacity: number
    • colour: string

    Returns Mesh

drawPolyline

  • drawPolyline(mesh: LinesMesh, pointsToDraw: number[][], updatable: boolean, width: number, opacity: number, colour: string): LinesMesh
  • Parameters

    • mesh: LinesMesh
    • pointsToDraw: number[][]
    • updatable: boolean
    • width: number
    • opacity: number
    • colour: string

    Returns LinesMesh

drawPolylineFromPointsAndColours

  • drawPolylineFromPointsAndColours(mesh: LinesMesh, updatable: boolean, points: Vector3[], colors: Color4[], width: number, opacity: number, colour: string): LinesMesh
  • Parameters

    • mesh: LinesMesh
    • updatable: boolean
    • points: Vector3[]
    • colors: Color4[]
    • width: number
    • opacity: number
    • colour: string

    Returns LinesMesh

drawPolylines

  • drawPolylines(mesh: LinesMesh, polylinePoints: number[][][], updatable: boolean, width: number, opacity: number, colour: string): LinesMesh
  • Parameters

    • mesh: LinesMesh
    • polylinePoints: number[][][]
    • updatable: boolean
    • width: number
    • opacity: number
    • colour: string

    Returns LinesMesh

edgesRendering

  • edgesRendering(mesh: LinesMesh, width: number, opacity: number, colour: string): void
  • Parameters

    • mesh: LinesMesh
    • width: number
    • opacity: number
    • colour: string

    Returns void

getArrayDepth

  • getArrayDepth(value: any): number

getFlatTransformations

  • getFlatTransformations(transformation: number[][] | number[][][]): number[][]
  • Parameters

    • transformation: number[][] | number[][][]

    Returns number[][]

localAxes

  • localAxes(size: number, scene: Scene, colorXHex: string, colorYHex: string, colorZHex: string): Mesh
  • Parameters

    • size: number
    • scene: Scene
    • colorXHex: string
    • colorYHex: string
    • colorZHex: string

    Returns Mesh

removeConsecutiveDuplicates

  • removeConsecutiveDuplicates(points: number[][], checkFirstAndLast?: boolean): number[][]
  • Parameters

    • points: number[][]
    • checkFirstAndLast: boolean = true

    Returns number[][]

snapGeometry

  • snapGeometry(geometry: any): any

Private snapVec3

  • snapVec3(v3: any): any

transformControlPoints

  • transformControlPoints(transformation: number[][] | number[][][], transformedControlPoints: number[][]): number[][]
  • Parameters

    • transformation: number[][] | number[][][]
    • transformedControlPoints: number[][]

    Returns number[][]

transformPointsByMatrix

  • transformPointsByMatrix(points: number[][], transformMatrix: Matrix): number[][]
  • Parameters

    • points: number[][]
    • transformMatrix: Matrix

    Returns number[][]

transformPointsByMatrixArray

  • transformPointsByMatrixArray(points: number[][], transform: number[]): number[][]

Generated using TypeDoc