API Reference > geometry-core > Serialization > BGFBAccessors > BGFBAccessors.Polyface BGFBAccessors.Polyface Class Methods Name Description constructor(): BGFBAccessors.Polyface __init(i: number, bb: ByteBuffer): BGFBAccessors.Polyface auxData(obj?: BGFBAccessors.PolyfaceAuxData): | BGFBAccessors.PolyfaceAuxData colorIndex(index: number): | number colorIndexArray(): | Int32Array colorIndexLength(): number colorTable(index: number): | number colorTableArray(): | Int32Array colorTableLength(): number doubleColor(index: number): | number doubleColorArray(): | Float64Array doubleColorLength(): number expectedClosure(): number faceData(index: number): | number faceDataArray(): | Float64Array faceDataLength(): number faceIndex(index: number): | number faceIndexArray(): | Int32Array faceIndexLength(): number intColor(index: number): | number intColorArray(): | Int32Array intColorLength(): number meshStyle(): number normal(index: number): | number normalArray(): | Float64Array normalIndex(index: number): | number normalIndexArray(): | Int32Array normalIndexLength(): number normalLength(): number numPerFace(): number numPerRow(): number param(index: number): | number paramArray(): | Float64Array paramIndex(index: number): | number paramIndexArray(): | Int32Array paramIndexLength(): number paramLength(): number point(index: number): | number pointArray(): | Float64Array pointIndex(index: number): | number pointIndexArray(): | Int32Array pointIndexLength(): number pointLength(): number taggedNumericData(obj?: BGFBAccessors.TaggedNumericData): | BGFBAccessors.TaggedNumericData twoSided(): boolean addAuxData(builder: Builder, auxDataOffset: number): void Static addColorIndex(builder: Builder, colorIndexOffset: number): void Static addColorTable(builder: Builder, colorTableOffset: number): void Static addDoubleColor(builder: Builder, doubleColorOffset: number): void Static addExpectedClosure(builder: Builder, expectedClosure: number): void Static addFaceData(builder: Builder, faceDataOffset: number): void Static addFaceIndex(builder: Builder, faceIndexOffset: number): void Static addIntColor(builder: Builder, intColorOffset: number): void Static addMeshStyle(builder: Builder, meshStyle: number): void Static addNormal(builder: Builder, normalOffset: number): void Static addNormalIndex(builder: Builder, normalIndexOffset: number): void Static addNumPerFace(builder: Builder, numPerFace: number): void Static addNumPerRow(builder: Builder, numPerRow: number): void Static addParam(builder: Builder, paramOffset: number): void Static addParamIndex(builder: Builder, paramIndexOffset: number): void Static addPoint(builder: Builder, pointOffset: number): void Static addPointIndex(builder: Builder, pointIndexOffset: number): void Static addTaggedNumericData(builder: Builder, taggedNumericDataOffset: number): void Static addTwoSided(builder: Builder, twoSided: boolean): void Static createColorIndexVector(builder: Builder, data: number[] | Uint8Array): number Static createColorTableVector(builder: Builder, data: number[] | Uint8Array): number Static createDoubleColorVector(builder: Builder, data: number[] | Uint8Array): number Static createFaceDataVector(builder: Builder, data: number[] | Uint8Array): number Static createFaceIndexVector(builder: Builder, data: number[] | Uint8Array): number Static createIntColorVector(builder: Builder, data: number[] | Uint8Array): number Static createNormalIndexVector(builder: Builder, data: number[] | Uint8Array): number Static createNormalVector(builder: Builder, data: number[] | Uint8Array): number Static createParamIndexVector(builder: Builder, data: number[] | Uint8Array): number Static createParamVector(builder: Builder, data: number[] | Uint8Array): number Static createPointIndexVector(builder: Builder, data: number[] | Uint8Array): number Static createPointVector(builder: Builder, data: number[] | Uint8Array): number Static createPolyface(builder: Builder, pointOffset: number, paramOffset: number, normalOffset: number, doubleColorOffset: number, intColorOffset: number, pointIndexOffset: number, paramIndexOffset: number, normalIndexOffset: number, colorIndexOffset: number, colorTableOffset: number, numPerFace: number, numPerRow: number, meshStyle: number, twoSided: boolean, faceIndexOffset: number, faceDataOffset: number, auxDataOffset: number, expectedClosure: number, taggedNumericDataOffset: number): number Static endPolyface(builder: Builder): number Static getRootAsPolyface(bb: ByteBuffer, obj?: BGFBAccessors.Polyface): BGFBAccessors.Polyface Static getSizePrefixedRootAsPolyface(bb: ByteBuffer, obj?: BGFBAccessors.Polyface): BGFBAccessors.Polyface Static startColorIndexVector(builder: Builder, numElems: number): void Static startColorTableVector(builder: Builder, numElems: number): void Static startDoubleColorVector(builder: Builder, numElems: number): void Static startFaceDataVector(builder: Builder, numElems: number): void Static startFaceIndexVector(builder: Builder, numElems: number): void Static startIntColorVector(builder: Builder, numElems: number): void Static startNormalIndexVector(builder: Builder, numElems: number): void Static startNormalVector(builder: Builder, numElems: number): void Static startParamIndexVector(builder: Builder, numElems: number): void Static startParamVector(builder: Builder, numElems: number): void Static startPointIndexVector(builder: Builder, numElems: number): void Static startPointVector(builder: Builder, numElems: number): void Static startPolyface(builder: Builder): void Static Properties Name Type Description bb_pos number bb | ByteBuffer Defined in serialization/BGFBAccessors.ts Line 4770 Last Updated: 11 June, 2024