Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CgInterpolator

Spline interpolator designed for coarse-grained data model

Hierarchy

Implements

Index

Constructors

constructor

Properties

Protected delta

delta: number

Protected dt

dt: number

Protected subdiv

subdiv: number

Protected subdivhalf

subdivhalf: number

Protected tension

tension: number

Protected vBin

vBin: Vector3

Protected vDir

vDir: Vector3

Protected vNorm

vNorm: Vector3

Protected vTan

vTan: Vector3

Protected vec1

vec1: Vector3

Protected vec2

vec2: Vector3

Methods

getColor

  • getColor(iterator: CgMonomerIterator | any, colFn: (...arg: any[]) => void, col: any, offset: number, isCyclic: boolean): void

getNormal

  • getNormal(size: number, tan: Float32Array, norm: Float32Array, bin: Float32Array, offset: number, isCyclic: boolean): void

getPicking

getPosition

  • getPosition(iterator: CgMonomerIterator | any, array: Float32Array, offset: number, isCyclic: boolean): void

getSize

getTangent

  • getTangent(iterator: CgMonomerIterator | any, array: Float32Array, offset: number, isCyclic: boolean): void

Protected interpolateColor

Protected interpolateNormal

  • interpolateNormal(vDir: Vector3, tan: Float32Array, norm: Float32Array, bin: Float32Array, offset: number): void

Protected interpolateNormalDir

  • interpolateNormalDir(u0: Vector3, u1: Vector3, u2: Vector3, u3: Vector3, v0: Vector3, v1: Vector3, v2: Vector3, v3: Vector3, tan: Float32Array, norm: Float32Array, bin: Float32Array, offset: number, shift: boolean): void

Protected interpolatePicking

Protected interpolatePosition

  • interpolatePosition(v0: Vector3, v1: Vector3, v2: Vector3, v3: Vector3, pos: Float32Array, offset: number): void

Protected interpolateSize

Protected interpolateTangent

  • interpolateTangent(v0: Vector3, v1: Vector3, v2: Vector3, v3: Vector3, tan: Float32Array, offset: number): void

Protected interpolateToArr

  • interpolateToArr(v0: Vector3, v1: Vector3, v2: Vector3, v3: Vector3, t: number, arr: Float32Array, offset: number): void

Protected interpolateToVec

  • interpolateToVec(v0: Vector3, v1: Vector3, v2: Vector3, v3: Vector3, t: number, vec: Vector3): void

Private proxiesToVectors

  • proxiesToVectors(proxies: CgMonomerProxy[], vectors: Vector3[]): void

Protected vectorSubdivide

  • vectorSubdivide(interpolationFn: (v0: Vector3, v1: Vector3, v2: Vector3, v3: Vector3, array: Float32Array, offset: number) => void, iterator: CgMonomerIterator, array: Float32Array, offset: number, isCyclic: boolean): void
  • override

    Parameters

    • interpolationFn: (v0: Vector3, v1: Vector3, v2: Vector3, v3: Vector3, array: Float32Array, offset: number) => void
        • (v0: Vector3, v1: Vector3, v2: Vector3, v3: Vector3, array: Float32Array, offset: number): void
        • Parameters

          • v0: Vector3
          • v1: Vector3
          • v2: Vector3
          • v3: Vector3
          • array: Float32Array
          • offset: number

          Returns void

    • iterator: CgMonomerIterator
    • array: Float32Array
    • offset: number
    • isCyclic: boolean

    Returns void

Generated using TypeDoc