QPoint3dBufferBuilder Class

Constructs a QPoint3dBuffer using a Uint16ArrayBuilder.

Methods

Name Description
constructor(options: QPoint3dBufferBuilderOptions): QPoint3dBufferBuilder Construct a new buffer with a length of zero.  
finish(): QPoint3dBuffer Obtain a QPoint3dBuffer containing all of the points that have been appended by this builder.  
get(pointIndex: number, result?: QPoint3d): QPoint3d Returns the quantized point at the specified index in buffer.  
push(pt: Readonly<WritableXYAndZ>): void Append a point with the specified quantized coordinates.  
pushXYZ(x: number, y: number, z: number): void Append a point with the specified quantized coordinates.  
unquantize(pointIndex: number, result?: Point3d): Point3d Returns the unquantized point at the specified index in buffer.  

Properties

Name Type Description
buffer Readonly Uint16ArrayBuilder The buffer that holds the points.  
length Accessor ReadOnly number The number of points currently in the buffer.  
params Readonly QParams3d The parameters used to quantize the points in the buffer.  

Defined in

Last Updated: 13 May, 2024