  ctx.strokeStyle = color.surface;
                ctx.lineWidth = GLOBAL_LINE_WIDTH_SURFACE;
                const step = 1 / segments;
                for (let v = 0; v <= 1.0001; v += step) {
                    ctx.beginPath();
                    ctx.moveTo(getPointOnSurface(patch, 0, v).x, getPointOnSurface(patch, 0, v).y);
                    for (let u = step; u <= 1.0001; u += step) {
                        const p = getPointOnSurface(patch, u, v); ctx.lineTo(p.x, p.y);
                    }
     