Home Reference Source
import {BufferTransformer} from 'bimsurfer3/viewer/buffertransformer.js'
public class | source

BufferTransformer

This class transforms buffers. The main purpose is to fix discrepancies between the over-the-line format and the glsl format. In ideal situations no conversions are needed. At the moment these methods are only used when data is reused. The idea is that all transformations will happen in this class, making for more readable renderers

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public

Method Summary

Public Methods
public

convertIndices(indices: *, nrOfVertices: *): *

public

convertNormals(normals: *): *

public

convertVertices(uniqueModelId: *, vertices: *): *

Public Constructors

public constructor() source

Public Members

public settings: * source

public vertexQuantization: * source

Public Methods

public convertIndices(indices: *, nrOfVertices: *): * source

Params:

NameTypeAttributeDescription
indices *
nrOfVertices *

Return:

*

public convertNormals(normals: *): * source

Params:

NameTypeAttributeDescription
normals *

Return:

*

public convertVertices(uniqueModelId: *, vertices: *): * source

Params:

NameTypeAttributeDescription
uniqueModelId *
vertices *

Return:

*