|
Asymptote: HTML format
import palette;
import graph3;
triple f(pair st) {
real s = st.x;
real t = st.y;
return (
-(2s-1)*(2t^3-3t^2+4)/(2(2s^2-2s+1)),
-s*(s-1)*(2t^3-3t^2+4)/(2s^2-2s+1),
-3*(t^3-9t^2+18t-12)/40
);
}
size(8cm);
currentprojection = perspective(6,3,6);
real xmin = -1, xmax = 1, ymin = -0.5, ymax = 0.5, zmin = -1, zmax = 1;
surface mySurface = surface(f, (xmin,ymin), (xmax,ymax),30,10);
mySurface.colors(palette(mySurface.map(zpart),Rainbow()));
draw(mySurface,render(merge=true)); |
|