UNPKG

@numericelements/knot-sequence

Version:

A library for generating and manipulating knot sequences for b-spline curves and surfaces

14 lines (11 loc) 502 B
'use strict'; function adaptParameterDecrementKnotMultiplicity() { return function (target, propertyKey, descriptor) { const originalMethod = descriptor.value; descriptor.value = function (index, checkSequenceConsistency) { const input = Array.isArray(index) ? index : [index]; return originalMethod.call(this, input, checkSequenceConsistency); }; }; } exports.adaptParameterDecrementKnotMultiplicity = adaptParameterDecrementKnotMultiplicity;