POV-Ray : Newsgroups : povray.general : Round_Box-weirdness : Re: Round_Box-weirdness Server Time
29 Jul 2024 16:34:05 EDT (-0400)
  Re: Round_Box-weirdness  
From: Jim Holsenback
Date: 13 Feb 2011 11:47:17
Message: <4d580b15$1@news.povray.org>
On 02/13/2011 10:29 AM, Marco wrote:
> I hqve the ewirdest thing: I copied a Round_Box_Union, but cannot give it a
> texture, like the round_box I copied it from. In the 2nd I get this error (note:
> only in the 2nd one, not the first! ???)
> 
> Parse Error: Expected 'object or directive', texture found instead
> 
> #declare listBox=union{
>         Round_Box_Union
> (
>         //<-7, 0.25, 6> <-1, 1.25, -7>, 0.2)
>         <-7, 0.25, 6> <-1, 1.5, -7>, 0.2)
>         texture {T_Gold_1A}
> }
> 
>         Round_Box_Union
> (
>         //<-7, 0.25, 6> <-1, 1.25, -7>, 0.2)
>         <-8.5, 0.25, 6> <-7.5, 1.25, -7>, 0.1)
>         texture {T_Gold_1A}
> }
> 
> This has worked before, before I added the 2nd Round_Box I did get a nicely
> rendered
> Round_Box, with fancy Gold_1A texture and all.
> 
> 
> 
try this instead ...

#declare listBox =
union {
	object {
		Round_Box_Union (<-7, 0.25, 6>, <-1, 1.5, -7> 0.2)
		texture {T_Gold_1A}
		}
	object {
		Round_Box_Union (<-8.5, 0.25, 6>, <-7.5, 1.25, -7>, 0.1)
		texture {T_Gold_1A}
		}
	};


Post a reply to this message

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