POV-Ray : Newsgroups : povray.programming : "minus" clause : Re: "minus" clause Server Time
17 May 2024 04:22:09 EDT (-0400)
  Re: "minus" clause  
From: Le Forgeron
Date: 22 Jan 2007 07:03:31
Message: <45b4a813$1@news.povray.org>
Andrey K. scripsit::
> Le Forgeron <jgr### [at] freefr> wrote:

>> Too much ambiguity for my taste.

> Order, in which objects allocated, very significant here.
> 

I won't reenter the fight about prefix vs infix operation. (do not
even mention postfix...)
CSG is prefix within povray SDL, so just keep it that way.

Or soon you will get a request of a reverse-polish notation for
expression. Let's do it the Forth way !
sphere{ 0,1 } MyObj =

is too easy...

1 0 sphere MyObj =

is better!

> Your`s sample "union { a minus b minus c d }" is equal to next clause:
> 
> union{          // ((a minus b) minus c) + d
>   difference{   // (a minus b) minus c
>     difference{ // a minus b
>       a
>       b
>     }
>     c
>   }
>   d
> }

There is a shorter syntax
union {
       difference {
       a
       b
       c
       }
   d
}



-- 
Eifersucht ist die Leidenschaft, die mit Eifer sucht, was Leiden
schafft.

Eco: -8.75 Soc: -6.72
http://www.politicalcompass.org/


Post a reply to this message

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