On Sat, 27 Jul 2013, Zbigniew Karkuszewski wrote:
Secondly, I would like to combine a 2D surface plot with a 1D curve
that is placed on the surface. I have noticed that one way of
achieving
such a thing is to limit a domain with slice1 or slice2. However
those
slices are along x or y axes. Is it possible to limit the domain to,
say, x=y?
Hi zbyszek,
The easiest technique to define an explicit composition:
P phi(const P& arg) { ... } // parametrized surface
G g(double t) { return P(t, t); }
P F(double t) { return phi(g(t)); }
or
P phi(double u, double v) { ... }
P F(double t) { return phi(t, t); }
Please ask if that isn't what you're looking for.