POV-Ray : Newsgroups : povray.advanced-users : 3d data files - help please : Re: 3d data files - help please Server Time
30 Jul 2024 04:24:34 EDT (-0400)
  Re: 3d data files - help please  
From: david sharp
Date: 30 Mar 2000 11:37:33
Message: <38e382cd@news.povray.org>
SamuelT. <STB### [at] aolcom> wrote
[ ... ]

If you are going  to type in values, probably
just using an array in the scene file (rather than
a data file) would be less of a pain.

E.g.:
///////////////
#declare Darray =
 array[3][3][3]
{
 {
  {-1,1,-1},
  {0,1,0},
  {-1,1,-1}
 },
 {
  {0,-1,0},
  {-1,1,-1},
  {0,-1,0}
 },
 {
  {1,0,1},
  {0,-1,0},
  {1,0,1}
 }
}

#declare FileDataFn = function{ "data_3D_3", <1>
     library   "i_dat3d",Darray, <3,3,3,0>
}
//////////


Post a reply to this message

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