API Reference > imodeljs-common > Serialization > EGFBAccessors > EGFBAccessors.Material EGFBAccessors.Material Class Methods Name Description constructor(): EGFBAccessors.Material __init(i: number, bb: ByteBuffer): EGFBAccessors.Material materialId(): Long origin(obj?: EGFBAccessors.DPoint3d): | EGFBAccessors.DPoint3d pitch(): number roll(): number size(obj?: EGFBAccessors.DPoint3d): | EGFBAccessors.DPoint3d trans2x3(obj?: EGFBAccessors.Trans2x3): | EGFBAccessors.Trans2x3 useMaterial(): number yaw(): number addMaterialId(builder: Builder, materialId: Long): void Static addOrigin(builder: Builder, originOffset: number): void Static addPitch(builder: Builder, pitch: number): void Static addRoll(builder: Builder, roll: number): void Static addSize(builder: Builder, sizeOffset: number): void Static addTrans2x3(builder: Builder, trans2x3Offset: number): void Static addUseMaterial(builder: Builder, useMaterial: number): void Static addYaw(builder: Builder, yaw: number): void Static createMaterial(builder: Builder, useMaterial: number, materialId: Long, originOffset: number, sizeOffset: number, yaw: number, pitch: number, roll: number, trans2x3Offset: number): number Static endMaterial(builder: Builder): number Static getRootAsMaterial(bb: ByteBuffer, obj?: EGFBAccessors.Material): EGFBAccessors.Material Static getSizePrefixedRootAsMaterial(bb: ByteBuffer, obj?: EGFBAccessors.Material): EGFBAccessors.Material Static startMaterial(builder: Builder): void Static Properties Name Type Description bb_pos number bb | ByteBuffer Defined in core/common/src/geometry/ElementGeometryFB.ts Line 2291 Last Updated: 11 June, 2024