[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ePiX-users] 1D curve in a 3D plot
From: |
Andrew D. Hwang |
Subject: |
Re: [ePiX-users] 1D curve in a 3D plot |
Date: |
Sat, 27 Jul 2013 18:38:20 -0400 (EDT) |
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.
--
Andy
Andrew D. Hwang address@hidden
Department of Math and CS http://mathcs.holycross.edu/~ahwang
College of the Holy Cross Office: Swords 339
Worcester, MA, 01610-2395 (508) 793-2458