Skip to main content

SvgTexture

Index

Constructors

constructor

  • new SvgTexture(_api: BimCoreApi, _size: number): SvgTexture
  • Parameters

    • _api: BimCoreApi
    • _size: number

    Returns SvgTexture

Methods

renderPageOfPdf

  • renderPageOfPdf(bimPdf: BimPdf): Promise<void>
  • Parameters

    Returns Promise<void>

publicrenderPartOfPDFToRef

  • renderPartOfPDFToRef(texture: DynamicTexture, bimPdf: BimPdf, plane: BimDrawingPlane, frustumCornerPointsOnZoomPlane: Vector3[]): Promise<void>
  • Parameters

    • texture: DynamicTexture

      Texture that the PDF will be rendered to.

    • bimPdf: BimPdf

      The PDF to be rendered.

    • plane: BimDrawingPlane

      The drawing will be rendered on.

    • frustumCornerPointsOnZoomPlane: Vector3[]

      The corner points of the camera view frustrum on the mathematical plane of the BimDrawingPlane.

    Returns Promise<void>

publicrenderSvgToRef

  • renderSvgToRef<T>(svg: SvgContent, texture: T): Promise<T>
  • Type parameters

    • T: Texture

    Parameters

    Returns Promise<T>