POV-Ray : Newsgroups : povray.newusers : Need help with "declare" : Need help with "declare" Server Time
6 Sep 2024 12:12:00 EDT (-0400)
  Need help with "declare"  
From: yang444
Date: 30 Apr 1998 23:20:11
Message: <35493F6B.866E9DB3@pacbell.net>
The code below gives the error:
   no matching { in difference, box found instead

There must be something about declaring that I couldn't find in the doc.
Would some kind soul please explain why I get this error?

-----------------------------
#include "colors.inc"

#declare Dflgg = box {
    <0, 0, 0>, <1, 1, .001>
    pigment  { color Red }
    finish { ambient .8 }
    scale <40, 24, 1>
}

difference
{
 Dflgg
 box
  {
    <0, 0, -1>, <1, 1, .002>
    pigment  { color  Blue  }
    finish { ambient .8 }
  }
}

-----------------------------

--
Alan


Post a reply to this message

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