sunrize
Version:
A Multi-Platform X3D Editor
17 lines (13 loc) • 335 B
JavaScript
const X3D = require ("../../X3D");
Object .assign (X3D .Arc2D .prototype,
{
toPrimitive (executionContext = this .getExecutionContext ())
{
const geometry = this .toIndexedLineSet (executionContext,
{
polyline: true,
});
geometry ._metadata = this ._metadata;
return geometry;
},
});