epix-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ePiX-users] 1D curve in a 3D plot


From: Zbigniew Karkuszewski
Subject: Re: [ePiX-users] 1D curve in a 3D plot
Date: Sun, 28 Jul 2013 15:49:49 +0200
User-agent: Roundcube Webmail/0.8.4

Hi Andy,

On 2013-07-28 00:38, Andrew D. Hwang wrote:
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.

Thank you for the answer. I hadn't noticed that similar solution was used in the butterfly.xp example. That together with clip_face(P(0,0,0), P(1, -1, 0)) solved my problem completely.

The flexibility of epix is outstanding.

Cheers!
zbyszek





--
Zbigniew Karkuszewski
Instytut Fotonowy Sp. z o.o. (光子研究所)
www.fotonowy.pl
tel: (+48) 666 059 798



reply via email to

[Prev in Thread] Current Thread [Next in Thread]