POV-Ray : Newsgroups : povray.general : Please Help Me Find My Stupid Mistake : Re: Please Help Me Find My Stupid Mistake Server Time
3 Aug 2024 04:16:28 EDT (-0400)
  Re: Please Help Me Find My Stupid Mistake  
From: Dave Matthews
Date: 7 May 2004 11:11:04
Message: <409ba708$1@news.povray.org>
Mike Williams wrote:

> The problem is that the Ball_And_Stick() macro doesn't return an object,
> it returns two objects. So you can't say
> 
>   object { Ball_And_Stick(Source_Points,Destination_Points,0.5, 0.1) }
> 
> 
> You can fix it by saying
> 
>   union { Ball_And_Stick(Source_Points,Destination_Points,0.5, 0.1) }
> 
> 
> or by making Ball_And_Stick() return a single union of the two objects
> 
>   union {
>     object { Source_Triangle }
>     object { Destination_Triangle }
>   }
>   ...
>   object { Ball_And_Stick(Source_Points,Destination_Points,0.5, 0.1) }
> 
> 
> The error message isn't very helpful, but I guess that the POV parser
> got just as confused as you did.
> 

Thanks, Mike.

As you can see, above, I finally found it also.  Actually what made it 
dawn on me, was trying to translate the whole thing.  Only the first 
part moved, then I realized that I had two objects.

Dave Matthews


Post a reply to this message

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