Attachment 'gridhex1.pov'

Download

   1 // gridhex1.pov
   2 // 2013 Aug 28
   3 
   4 // hex grid in XZ plane, dimensions microns
   5 
   6 #include "colors.inc"
   7 #include "textures.inc"
   8 
   9 #declare  spc = 3.0 ;
  10 #declare  wid = 0.3 ;
  11 #declare  thk = 0.5 ;
  12 #declare  nmx = 1.0 ;
  13 #declare  nmz = 2.0 ;
  14 
  15 #declare  dx  = spc * 0.75 ;
  16 #declare  dz  = spc * sqrt( 3.0 ) / 4.0 ;
  17 #declare  hz  = dz   - wid/2.0       ;
  18 #declare  hx0 = 0.50*spc - wid/sqrt(3.0) ;
  19 #declare  hx1 = 0.25*spc - wid/sqrt(3.0) ;
  20 
  21 #declare  x0 = 0.99*0.50*spc ;
  22 #declare  x1 = 0.99*0.25*spc ;
  23 #declare  z1 = 0.99*dz ;
  24 
  25 light_source { < 1000, 6000, 1000> color rgb 1.0 }
  26 # camera { angle 30.0  location <5,20,-7> look_at <0.5*dx,0,-0.1*dz> sky z  }
  27 
  28 // hole cut from plane
  29 #declare hexhole = prism{ conic_sweep linear_spline 1, 0, 7,
  30     < x0,0>, < x1,z1>, < -x1,z1>, < -x0,0>, < -x1, -z1>, < x1,-z1>, < x0,0>
  31     scale < 1, 4, 1 >
  32     translate < 0, -3.4, 0 >
  33 }
  34 
  35 difference {
  36   box { < -29, thk, -29 >, <29,-1,29 > }
  37   union { 
  38     #declare nx = -nmx ;
  39     #while(  nx <  nmx + 1 ) 
  40       #declare nz = -nmz ;
  41       #while(  nz <  nmz + 1 ) 
  42          object { hexhole translate < (2*nx+0)*dx , 0, (2*nz+0)*dz > }
  43          object { hexhole translate < (2*nx+1)*dx , 0, (2*nz+1)*dz > }
  44          #declare nz = nz + 1 ;
  45        #end
  46        #declare nx = nx + 1 ;
  47      #end
  48   } 
  49   pigment { White }
  50   // texture { Aluminum }
  51 }
  52 box { < -29, 0, -29 >, <29,-5,29 >   pigment { Gray10 } }

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2013-08-14 23:22:23, 9.0 KB) [[attachment:g200.c]]
  • [get | view] (2022-03-16 00:29:52, 64.0 KB) [[attachment:g200.png]]
  • [get | view] (2013-08-14 21:02:48, 814.8 KB) [[attachment:g200_1024.swf]]
  • [get | view] (2013-08-14 23:22:33, 814.9 KB) [[attachment:g200_384.swf]]
  • [get | view] (2013-08-14 21:03:12, 814.9 KB) [[attachment:g200_512.swf]]
  • [get | view] (2022-03-16 00:41:03, 197.2 KB) [[attachment:g201.png]]
  • [get | view] (2013-08-29 18:50:31, 0.2 KB) [[attachment:gridhex1.ini]]
  • [get | view] (2013-08-29 08:11:48, 117.3 KB) [[attachment:gridhex1.png]]
  • [get | view] (2013-08-29 18:50:17, 1.3 KB) [[attachment:gridhex1.pov]]
  • [get | view] (2013-08-08 05:34:27, 118.4 KB) [[attachment:ir-reflect0.png]]
  • [get | view] (2013-08-08 05:23:38, 5.8 KB) [[attachment:ir0.c]]
  • [get | view] (2013-08-08 05:23:49, 1.9 KB) [[attachment:ir0.gp]]
  • [get | view] (2013-08-08 05:24:06, 16.9 KB) [[attachment:ir0.png]]
  • [get | view] (2013-08-22 15:39:57, 6.6 KB) [[attachment:ir1.c]]
  • [get | view] (2013-08-22 15:40:06, 2.3 KB) [[attachment:ir1.gp]]
  • [get | view] (2013-08-22 15:40:15, 16.5 KB) [[attachment:ir1.png]]
  • [get | view] (2013-08-14 22:55:55, 4.2 KB) [[attachment:irn1.c]]
  • [get | view] (2013-08-14 22:56:15, 1.8 KB) [[attachment:irn1.gp]]
  • [get | view] (2013-08-14 22:56:26, 17.9 KB) [[attachment:irn1.png]]
 All files | Selected Files: delete move to page

You are not allowed to attach a file to this page.