POV-Ray : Newsgroups : povray.advanced-users : Union of unions and macros : Re: Union of unions and macros Server Time
27 Apr 2024 03:02:39 EDT (-0400)
  Re: Union of unions and macros  
From: Alain
Date: 20 Feb 2016 14:31:18
Message: <56c8bf06$1@news.povray.org>
Le 16-02-18 22:43, dick balaska a écrit :
> On 2/18/2016 9:51 PM, Mike Horvath wrote:
>> I have the following bit of code:
>>
>>
>> union
>> {
>>      #for (i, 1, Trees_Number)
>>          #local Trees_Object = union
>>          {
>>              PlantPatch()
>>              scale 1/64
>>          }
>>          Populate_Triangle(Trees_Object, 1, Seed, Flip)
>>      #end
>> }
>>
>>
>> The result of the PlantPatch() and Populate_Triangle() macros are
>> additional unions. However, I get the error, "No matching } in 'union',
>> union found instead". Is there something wrong with the scene? I thought
>> unions could contain other unions. Thanks.
>>
>
> Change PlantPatch to an intersection and Populate_Triangle to a difference.
> The object will be broken but it will parse, and that might lead you to
> which is your offending macro.  One of those has an extra }
>
>

Excuse me, but changing an union to an intersection or difference?
There is no way that can give the same result, ever. It will also render 
MUCH slower.

My guess is that one of those macros produce an union that may be 
missing it's closing brace.


Alain


Post a reply to this message

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