 |
 |
|
 |
|
 |
|  |
|  |
|
 |
From: SamuelT
Subject: Re: Stacking spheres - was Re: Patch enhancement request - Trace keyword
Date: 30 Jun 2000 16:56:13
Message: <395D0A4D.CE2A08A7@aol.com>
|
|
 |
|  |
|  |
|
 |
Chris Huff wrote:
> It might work better if you added the objects to an array intead of
> using a deeply nested union.
Darn, haven't learned arrays yet. What would I do with the array?
> Oh, and why did you use "#object"?
I thought I had to encase Obj inside it....
~Samuel
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On Fri, 30 Jun 2000 13:59:58 -0700, SamuelT wrote:
>Chris Huff wrote:
>
>> It might work better if you added the objects to an array intead of
>> using a deeply nested union.
>
>Darn, haven't learned arrays yet. What would I do with the array?
Put your spheres in it and loop over the ones you have so far looking for
a hit with trace(). Then take the closest hit you found. The nested unions
are probably faster, if you can get them to work.
>> Oh, and why did you use "#object"?
>
>I thought I had to encase Obj inside it....
You're looking for "object" rather than "#object". "#object" is bad syntax,
but the parser treats it like "object" for now.
--
Ron Parker http://www2.fwi.com/~parkerr/traces.html
My opinions. Mine. Not anyone else's.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Worse, the whole system freezes. I'm currently using a Macintosh for this.
Ron Parker wrote:
> Interesting. Does the behaviour persist if you use #declare instead of
> #local?
Post a reply to this message
|
 |
|  |
|  |
|
 |
From: SamuelT
Subject: Re: Stacking spheres - was Re: Patch enhancement request - Trace keyword
Date: 30 Jun 2000 17:09:42
Message: <395D0D75.71EB3702@aol.com>
|
|
 |
|  |
|  |
|
 |
Ron Parker wrote:
> Put your spheres in it and loop over the ones you have so far looking for
> a hit with trace(). Then take the closest hit you found. The nested unions
> are probably faster, if you can get them to work.
Then I'll try using union when I get home, since that computer is a PC.
> >> Oh, and why did you use "#object"?
> >
> >I thought I had to encase Obj inside it....
>
> You're looking for "object" rather than "#object". "#object" is bad syntax,
> but the parser treats it like "object" for now.
Okay.
~Samuel
Post a reply to this message
|
 |
|  |
|  |
|
 |
From: Bob Hughes
Subject: Re: Patch enhancement request - Trace keyword
Date: 30 Jun 2000 20:24:21
Message: <395d3a35@news.povray.org>
|
|
 |
|  |
|  |
|
 |
"Ron Parker" <ron### [at] povray org> wrote in message
news:slr### [at] linux parkerr fwi com...
| >
| >> What does #object do?
| >
| >It acts the same as "object" as far as I can tell...things like "#box"
| >also work. It works in the official version too, I guess it is just a
| >strange parser bug.
|
| I looked it up. The tokenizer just ungets anything that doesn't belong
| after a # without raising any eyebrows. You can even say
|
| #declare #foo = 12;
| #declare #bar = foo;
|
| without any problems. Nice for obfuscation, but not guaranteed to stay
| that way.
Neither here nor there but... CodeMax syntax highlighting sees keywords
without the "#" and yet POV-Ray doesn't parse them okay; as expected of
course.
Bob
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |