UNPKG

sunrize

Version:

Sunrize — A Multi-Platform X3D Editor

18 lines (14 loc) 376 B
const X3D = require ("../../X3D"); Object .assign (X3D .Text .prototype, { toPrimitive (executionContext = this .getExecutionContext ()) { const geometry = this .toIndexedFaceSet (executionContext, { texCoord: true, }); geometry ._metadata = this ._metadata; geometry ._solid = this ._solid; return geometry; }, });