sunrize
Version:
A Multi-Platform X3D Editor
18 lines (14 loc) • 376 B
JavaScript
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;
},
});