POV-Ray : Newsgroups : povray.general : Using external data in ISO-surface function Server Time
29 Nov 2024 11:40:06 EST (-0500)
  Using external data in ISO-surface function (Message 1 to 9 of 9)  
From: jidrobo
Subject: Using external data in ISO-surface function
Date: 10 Nov 2005 13:20:00
Message: <web.43738e1aaaaba4bfb84b003c0@news.povray.org>
I would like to use external data to make an isosurface. However, I do not
exactly know what is the format of the external file that I should use.

I assume that the file should be in ascii format and each line should have
the data in this way:

<x1,y1,z1>
<x2,y2,z3>
......
......
<xn,yn,zn>

But I am not quite sure. I saw in a web site that I could upload an external
file and then used in a isosurface function as it is mentioned at the end,
but it is not working, or I do not quite understand (see at the end of this
message)....
HELPPPPP!!!

Juano

=============
#declare ISO = 1;                  // turn wavefunctions on
#declare NX = 51;                  // set grid size
#declare NY = 51;                  //
#declare NZ = 51;                  //
#declare LEVSCALE = 15;

#ifdef (ISO)
#declare wfun1 = function {"data_3D_3",
     <-LEVSCALE>, library "i_dat3d","wfn_NN.xyzi",<NX+1,NY+1,NZ+1,0>}

 isosurface {
       function{wfun1}
       bounded_by{box{<0,0,0>, <NX,NY,NZ>}}
       threshold -1
       max_gradient 1.000
       eval
       texture { pigment {color rgbt <1.0,0.0,0.0,0.8>} }
 }
======


Post a reply to this message

From: lien0n
Subject: Re: Using external data in ISO-surface function
Date: 17 Nov 2005 04:05:01
Message: <web.437c46ccc5b57dff598059850@news.povray.org>
I also want to do similar things. I wrote my data as density file(**.df3),
and try to use the keyword "density" to be inside the isosurface function
like follows:
//=================================================begin
isosurface{
  function {
  density { density_file df3 "**.df3" interpolate 1 }
  }
  contained_by { box { 0, 1 } }
  pigment{rgb <1,0,0>}
}
//=================================================end

but errors appeared. then how to do such things??


Post a reply to this message

From: lien0n
Subject: Re: Using external data in ISO-surface function
Date: 17 Nov 2005 04:10:00
Message: <web.437c4879c5b57dff598059850@news.povray.org>
thank jidrobo for this message. i also want to do similar things.
and i tried this:
//============= code begin ========
isosurface{
  function {
   density { density_file df3 densityfile interpolate 1 }
  }
  contained_by { box { 0, 1 } }
  pigment{rgb <1,0,0>}
}
//============= code end ==========

but errors appeared when parsing, then how to do?


Post a reply to this message

From: Mike Williams
Subject: Re: Using external data in ISO-surface function
Date: 17 Nov 2005 04:50:57
Message: <IC6B$DAoJFfDFw+K@econym.demon.co.uk>
Wasn't it lien0n who wrote:
>  I also want to do similar things. I wrote my data as density file(**.df3),
>and try to use the keyword "density" to be inside the isosurface function
>like follows:
>//=================================================begin
>isosurface{
>  function {
>  density { density_file df3 "**.df3" interpolate 1 }
>  }
>  contained_by { box { 0, 1 } }
>  pigment{rgb <1,0,0>}
>}
>//=================================================end
>
>but errors appeared. then how to do such things??

See http://www.econym.demon.co.uk/isotut/patterns.htm#density

In an isosurface you can use the df3 as a pattern but not as a density.
Density is only meaningful in media.

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

From: lien0n
Subject: Re: Using external data in ISO-surface function
Date: 18 Nov 2005 01:35:01
Message: <web.437d753ac5b57dff598059850@news.povray.org>
thanks, mike~!

but i can't open the link you provided.


Mike Williams <nos### [at] econymdemoncouk> wrote:
> Wasn't it lien0n who wrote:
> >  I also want to do similar things. I wrote my data as density file(**.df3),
> >and try to use the keyword "density" to be inside the isosurface function
> >like follows:
> >//=================================================begin
> >isosurface{
> >  function {
> >  density { density_file df3 "**.df3" interpolate 1 }
> >  }
> >  contained_by { box { 0, 1 } }
> >  pigment{rgb <1,0,0>}
> >}
> >//=================================================end
> >
> >but errors appeared. then how to do such things??
>
> See http://www.econym.demon.co.uk/isotut/patterns.htm#density
>
> In an isosurface you can use the df3 as a pattern but not as a density.
> Density is only meaningful in media.
>
> --
> Mike Williams
> Gentleman of Leisure


Post a reply to this message

From: Mike Williams
Subject: Re: Using external data in ISO-surface function
Date: 18 Nov 2005 01:54:35
Message: <oA2p$MAZqXfDFw6S@econym.demon.co.uk>
Wasn't it lien0n who wrote:
>thanks, mike~!
>
>but i can't open the link you provided.

If you're using nannyware you may find the whole of demon.co.uk blocked
because some demon users put naughty images on their pages.

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

From: lien0n
Subject: Re: Using external data in ISO-surface function
Date: 24 Nov 2005 01:55:00
Message: <web.438562f3c5b57dff598059850@news.povray.org>
thanks mike, but am on a window's machine, and i tried to tune many
parameters in IE options, still i can't open the link.

so i am thinking if there is an offline version package, if there is, would
u please to send me a copy at lie### [at] gmailcom ?
thanks again...


Mike Williams <nos### [at] econymdemoncouk> wrote:
> Wasn't it lien0n who wrote:
> >thanks, mike~!
> >
> >but i can't open the link you provided.
>
> If you're using nannyware you may find the whole of demon.co.uk blocked
> because some demon users put naughty images on their pages.
>
> --
> Mike Williams
> Gentleman of Leisure


Post a reply to this message

From: jidrobo
Subject: Re: Using external data in ISO-surface function
Date: 13 Dec 2005 18:15:01
Message: <web.439f5514c5b57dffb84b003c0@news.povray.org>
Thank you Mike, your comments were helpful.
I also found a nice link for the people that wants to do the iso-surface or
volume rendering.

http://astronomy.swin.edu.au/~pbourke/raytracing/df3/

I am still trying to figure out the way to make it work nicely. But at least
I am one step forward.

Juan

"lien0n" <nomail@nomail> wrote:
> thanks mike, but am on a window's machine, and i tried to tune many
> parameters in IE options, still i can't open the link.
>
> so i am thinking if there is an offline version package, if there is, would
> u please to send me a copy at lie### [at] gmailcom ?
> thanks again...
>
>
> Mike Williams <nos### [at] econymdemoncouk> wrote:
> > Wasn't it lien0n who wrote:
> > >thanks, mike~!
> > >
> > >but i can't open the link you provided.
> >
> > If you're using nannyware you may find the whole of demon.co.uk blocked
> > because some demon users put naughty images on their pages.
> >
> > --
> > Mike Williams
> > Gentleman of Leisure


Post a reply to this message

From: Mike Williams
Subject: Re: Using external data in ISO-surface function
Date: 14 Dec 2005 02:59:39
Message: <CKSD9JArB9nDFw+c@econym.demon.co.uk>
Wasn't it jidrobo who wrote:
>Thank you Mike, your comments were helpful.
>I also found a nice link for the people that wants to do the iso-surface or
>volume rendering.
>
>http://astronomy.swin.edu.au/~pbourke/raytracing/df3/

There's nothing about isosurfaces on that page. Those are straight
forward df3 volume renderings without any surfaces.

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.