|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |