POV-Ray : Newsgroups : povray.newusers : CSG union Server Time
5 Nov 2024 07:17:37 EST (-0500)
  CSG union (Message 1 to 6 of 6)  
From: SomeOne
Subject: CSG union
Date: 29 Jun 2004 13:14:50
Message: <40e1a38a$1@news.povray.org>
Hi,

I'm having a problem with POV-ray that I don't understand. Scenes that I build
frequently produce this warnning:

Parse Warning: CSG union unnecessarily bounded

I'm not sure what causes this. I use one union that looks like this:

#declare A = union{
    object{ X }
    object{ Y }
    object{ Z }
}

Ofcourse each object has the necessary scale, transform etc. modifiers, I left
them out for simplicity reasons.
Now, I'm *assuming* that the above structure is not correct and produces the
parse warning, but I have no idea what I'm doing wrong or how I can improve
this.

Any suggestions are welcome.

-- 
Maurice


Post a reply to this message

From: Ross
Subject: Re: CSG union
Date: 29 Jun 2004 13:34:38
Message: <40e1a82e$1@news.povray.org>
"SomeOne" <ask### [at] yahoocouknospam> wrote in message
news:40e1a38a$1@news.povray.org...
> Hi,
>
> I'm having a problem with POV-ray that I don't understand. Scenes that I
build
> frequently produce this warnning:
>
> Parse Warning: CSG union unnecessarily bounded
>
> I'm not sure what causes this. I use one union that looks like this:
>
> #declare A = union{
>     object{ X }
>     object{ Y }
>     object{ Z }
> }

this is correct syntax. how are you defining objects X, Y, and Z?


Post a reply to this message

From: Warp
Subject: Re: CSG union
Date: 29 Jun 2004 14:26:45
Message: <40e1b465@news.povray.org>
SomeOne <ask### [at] yahoocouknospam> wrote:
> Parse Warning: CSG union unnecessarily bounded

  You are using bounded_by statements which (POV-Ray thinks) are
unnecessary.
  It's just a warning. You can ignore it.

-- 
plane{-x+y,-1pigment{bozo color_map{[0rgb x][1rgb x+y]}turbulence 1}}
sphere{0,2pigment{rgbt 1}interior{media{emission 1density{spherical
density_map{[0rgb 0][.5rgb<1,.5>][1rgb 1]}turbulence.9}}}scale
<1,1,3>hollow}text{ttf"timrom""Warp".1,0translate<-1,-.1,2>}//  - Warp -


Post a reply to this message

From: JWV
Subject: Re: CSG union
Date: 29 Jun 2004 15:36:13
Message: <40e1c4ad$1@news.povray.org>
You can ignore it indeed, but it is better to understand why the warning is
given.

JWV

"Warp" <war### [at] tagpovrayorg> wrote in message
news:40e1b465@news.povray.org...
> SomeOne <ask### [at] yahoocouknospam> wrote:
> > Parse Warning: CSG union unnecessarily bounded
>
>   You are using bounded_by statements which (POV-Ray thinks) are
> unnecessary.
>   It's just a warning. You can ignore it.
>
> -- 
> plane{-x+y,-1pigment{bozo color_map{[0rgb x][1rgb x+y]}turbulence 1}}
> sphere{0,2pigment{rgbt 1}interior{media{emission 1density{spherical
> density_map{[0rgb 0][.5rgb<1,.5>][1rgb 1]}turbulence.9}}}scale
> <1,1,3>hollow}text{ttf"timrom""Warp".1,0translate<-1,-.1,2>}//  - Warp -


Post a reply to this message

From: SomeOne
Subject: Re: CSG union
Date: 29 Jun 2004 15:49:38
Message: <40e1c7d2@news.povray.org>
"Ross" <rli### [at] everestkcnet> schreef in bericht
news:40e1a82e$1@news.povray.org...
| "SomeOne" <ask### [at] yahoocouknospam> wrote in message
| news:40e1a38a$1@news.povray.org...
| > Hi,
| >
| > I'm having a problem with POV-ray that I don't understand. Scenes that I
| build
| > frequently produce this warnning:
| >
| > Parse Warning: CSG union unnecessarily bounded
| >
| > I'm not sure what causes this. I use one union that looks like this:
| >
| > #declare A = union{
| >     object{ X }
| >     object{ Y }
| >     object{ Z }
| > }
|
| this is correct syntax. how are you defining objects X, Y, and Z?
|

E.g. X is declared as:

#declare X =
#include "file1.inc"
#include "file2.inc"
object
{ X2 }

"file1.inc" contains a set of declares that are used in the macro X2.
"file2.inc" defines the macro X2.


Post a reply to this message

From: Warp
Subject: Re: CSG union
Date: 29 Jun 2004 16:13:05
Message: <40e1cd51@news.povray.org>
JWV <jwv|at|planet.nl> wrote:
> You can ignore it indeed, but it is better to understand why the warning is
> given.

  Sure. Usually, however, if he is writing bounded_by blocks he is just
wasting his writing work for nothing, but not doing anything which would
affect negatively render times.
  Usually when a user-defined bounding box is smaller than the one
POV-Ray calculates (or if the object doesn't have any bounding box
by default), POV-Ray will accept it.
  There may be a few cases where POV-Ray gets it wrong and the user-defined
bounding box may be more optimal, and if you think this is so, you can
turn off the check with a command-line option.

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

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