interface AcGiRenderer<T extends AcGiEntity = AcGiEntity> {
    area(area: AcGeArea2d, style: AcGiHatchStyle): T;
    circularArc(arc: AcGeCircArc3d, style: AcGiLineStyle): T;
    ellipticalArc(ellipseArc: AcGeEllipseArc3d, style: AcGiLineStyle): T;
    group(entities: T[]): T;
    image(blob: Blob, style: AcGiImageStyle): T;
    lines(points: AcGeVector3dLike[], style: AcGiLineStyle): T;
    lineSegments(
        array: Float32Array,
        itemSize: number,
        indices: Uint16Array,
        style: AcGiLineStyle,
    ): T;
    mtext(mtext: AcGiMTextData, style: AcGiTextStyle): T;
    point(point: AcGePoint3d, style: AcGiPointStyle): T;
    setFontMapping(mapping: AcGiFontMapping): void;
}

Type Parameters

Methods

  • Create one group

    Parameters

    • entities: T[]

      Input entities to group together

    Returns T

    Return created group

  • Draw lines using gl.LINES.

    Parameters

    • array: Float32Array

      Must be a TypedArray. Used to instantiate the buffer. This array should have itemSize * numVertices elements, where numVertices is the number of vertices.

    • itemSize: number

      The number of values of the array that should be associated with a particular vertex. If the vertex is one 2d point, then itemSize should be 2. If the vertex is one 3d point, then itemSize should be 3.

    • indices: Uint16Array

      Index buffer.

    • style: AcGiLineStyle

      Input line style applied to line segments

    Returns T

    Return an object which can be added to scene