UNPKG

sunrize

Version:

Sunrize — A Multi-Platform X3D Editor

18 lines (14 loc) 432 B
const X3D = require ("../../X3D"); Object .assign (X3D .NurbsCurve .prototype, { toPrimitive (executionContext = this .getExecutionContext ()) { const geometry = this .toIndexedLineSet (executionContext, { double: !!X3D .X3DCast (X3D .X3DConstants .CoordinateDouble, this ._controlPoint), polyline: true, }); geometry ._metadata = this ._metadata; return geometry; }, });