createSurfParamCurves(expr, vars, x0, x1, y0, y1) creates a special set with the parameter curves of the surface described by expr, a real three-dimensional vector-valued function in the two variables listed in the comma-separated string vars. The first variable will run through [x0, x1], and the second through [y0, y1]. The resulting set is drawn by the drawSurfParamCurves function.
Examples: garden ≔ createSurfParamCurves("❨x, y, sin(x⋅randomReal(1)) ⋅ sin(y)❩", "x, y", -10, 10, -10, 10)
drawSurfParamCurves("garden", "colour:gold")
grass ≔ createSurfParamCurves("❨x, y, randomReal(1)❩", "x, y", -10, 10, -10, 10)
drawSurfParamCurves("grass", "colour:forestgreen")
surf ≔ createSurfParamCurves("❨x, y, sin(sqrt(x^2 + y^2)), hsv(x^2 + y^2, 1, 1)❩", "x, y", -10, 10, -10, 10)
drawColouredSurfParamCurves("surf")
// Superposition of water waves (without attenuation...)
ψ ≔ "r" ↦ "sin(4⋅norm(❨2, 2❩ − r))/6"
Φ ≔ "r" ↦ "sin(4⋅norm(❨0, 0❩ − r))/6"
S ≔ "r" ↦ "ψ(r) + Φ(r)"
set ≔ createSurfParamCurves("❨x, y, S(❨x, y❩), hsv(90 − 270⋅S(❨x, y❩), 1, 1)❩", "x, y", -10, 10, -10, 10)
drawAxes3(1)
drawColouredSurfParamCurves("set")
See also: drawSurfParamCurves. Compare to: createSet, createGraph3, drawSet3, createNet