• Preparing search index...
  • The search index is not available
@xeokit/sdk - v0.1.0
  • @xeokit/sdk
  • presentations
  • drawings
  • hle
  • buildHLEDepthBuffer

Function buildHLEDepthBuffer

  • buildHLEDepthBuffer(
        sourceModel: SceneModel,
        basis: ProjectionBasis,
        aabb: FloatArrayParam,
        options?: BuildHLEDepthBufferOptions,
    ): Promise<HLEDepthBuffer>

    Walk every triangle on every mesh of sourceModel and rasterise it into the returned depth buffer. The buffer spans the source AABB projected onto the basis's right/up axes; geometry outside that rotated rect falls outside the buffer and is ignored.

    Parameters

    • sourceModel: SceneModel

      SceneModel whose triangles seed the depth buffer.

    • basis: ProjectionBasis

      Projection basis defining the view direction.

    • aabb: FloatArrayParam

      World-space AABB ([xMin,yMin,zMin, xMax,yMax,zMax]) to bound the buffer. Eight corners of this AABB are transformed into basis space to derive the buffer's u/v extents.

    • options: BuildHLEDepthBufferOptions = {}

      Tuning parameters.

    Returns Promise<HLEDepthBuffer>

    • Defined in packages/sdk/src/presentations/drawings/hle/computeHLE.ts:55

Settings

Member Visibility
@xeokit/sdk - v0.1.0
  • Loading...

Generated using TypeDoc