POV-Ray : Newsgroups : povray.binaries.images : Visualizing vector fields with a single isosurface Server Time: 17 Feb 2019 21:39:50 GMT
 Visualizing vector fields with a single isosurface (Message 1 to 7 of 7)
 From: Tor Olav Kristensen Subject: Visualizing vector fields with a single isosurface Date: 30 Jan 2010 13:35:01 Message:
```This image is an attempt to visualize the vector field <Z, -X, Y>.

Tor Olav
http://subcube.com
```

Attachments:

Preview of image 'vectorfield.jpg'

 From: Christian Froeschlin Subject: Re: Visualizing vector fields with a single isosurface Date: 30 Jan 2010 15:31:19 Message: <4b6450c7\$1@news.povray.org>
```Elegant. Is it faster than simply generating a heap of objects?
It is probably more difficult to add some direction indicator.
```
 From: Reactor Subject: Re: Visualizing vector fields with a single isosurface Date: 30 Jan 2010 19:55:00 Message:
```"Tor Olav Kristensen" <tor### [at] TOBEREMOVEDgmailcom> wrote:
> This image is an attempt to visualize the vector field <Z, -X, Y>.
>
> Tor Olav
> http://subcube.com

I remember wanting to do something similar, but I found that you cannot have
parameters for a transformation function ;_;

I would up using a macro to generate parts of the function, but making a series
of functions that duplicate the behavior of a matrix in a symbolic fashion was
very difficult for me.  I wound up making simpler functions, which could not
provide the ability to arbitrarily transform a function by varying amounts.

Anyway, I would be curious as to how your code is, if you don't mind posting a
sample.  If your method provides a more elegant way of taking a point (x,y,z)
and spitting out a new, transformed point(x',y',z'),  I can think of many uses
for it.

-Reactor
```
 From: Tor Olav Kristensen Subject: Re: Visualizing vector fields with a single isosurface Date: 31 Jan 2010 16:10:01 Message:
```Christian Froeschlin <chr### [at] chrfrde> wrote:
> Elegant. Is it faster than simply generating a heap of objects?

Thank you. No, in most cases it will be slower.

The attached image that shows something that can not be achieved
by orienting and spreading around a lot of objeccts with loops.

> It is probably more difficult to add some direction indicator.

No, this can be done quite easily, but the rendering time will increase.

--
Tor Olav
http://subcube.com
```

Attachments:

Preview of image 'vectorfield2.jpg'

 From: Tor Olav Kristensen Subject: Re: Visualizing vector fields with a single isosurface Date: 31 Jan 2010 16:20:01 Message:
```"Tor Olav Kristensen" <tor### [at] TOBEREMOVEDgmailcom> wrote:
> Christian Froeschlin <chr### [at] chrfrde> wrote:
> > Elegant. Is it faster than simply generating a heap of objects?
>
> Thank you. No, in most cases it will be slower.
>
> The attached image that shows something that can not be achieved
> by orienting and spreading around a lot of objeccts with loops.
>
>
> > It is probably more difficult to add some direction indicator.
>
> No, this can be done quite easily, but the rendering time will increase.

Here's an image with the bars made arrow shaped.
Doing it this way does not increase the rendering time significantly.

--
Tor Olav
http://subcube.com
```

Attachments:

Preview of image 'vectorfield3.jpg'

 From: Tor Olav Kristensen Subject: Re: Visualizing vector fields with a single isosurface Date: 31 Jan 2010 16:20:01 Message:
```"Reactor" <rea### [at] hotmailcom> wrote:
> "Tor Olav Kristensen" <tor### [at] TOBEREMOVEDgmailcom> wrote:
> > This image is an attempt to visualize the vector field <Z, -X, Y>.
> >
> > Tor Olav
> > http://subcube.com
>
> I remember wanting to do something similar, but I found that you cannot have
> parameters for a transformation function ;_;
>
> I would up using a macro to generate parts of the function, but making a series
> of functions that duplicate the behavior of a matrix in a symbolic fashion was
> very difficult for me.  I wound up making simpler functions, which could not
> provide the ability to arbitrarily transform a function by varying amounts.
>
> Anyway, I would be curious as to how your code is, if you don't mind posting a
> sample.  If your method provides a more elegant way of taking a point (x,y,z)
> and spitting out a new, transformed point(x',y',z'),  I can think of many uses
> for it.

It will take some time to explain how I did this.

But I'll try to find time within a few days to explain what I've done and post
some source code.

--
Tor Olav
http://subcube.com
```
 From: Christian Froeschlin Subject: Re: Visualizing vector fields with a single isosurface Date: 31 Jan 2010 23:00:34 Message: <4b660b92\$1@news.povray.org>
```Tor Olav Kristensen wrote:

> Here's an image with the bars made arrow shaped.

neat ;)
```