POV-Ray : Newsgroups : povray.general : Is this a bug or am I missing something obvious? Server Time
7 Aug 2024 07:11:24 EDT (-0400)
  Is this a bug or am I missing something obvious? (Message 1 to 6 of 6)  
From: Zen Psycho
Subject: Is this a bug or am I missing something obvious?
Date: 11 Nov 2001 16:01:51
Message: <3beef6e1.13801575@news.povray.org>
This stops both 3.1 and 3.5
I can't for the life of me find anything wrong.  with it.

I think this might be a known bug: but when 3.5 windows  renders it-
it stops, doesn't show the messages window- and it still says
PARSING... in the status bar. 

Help! :)


#macro bar2(I,R,L)

#local N=I+R+R;
#local M=N/2-R;

difference{ torus{M,R rotate 90*x}
box{<0,-N+0.1,-R+0.1><N+0.1,N+0.1,R+0.1>}  }          
difference{ torus{M,R rotate 90*x translate L*x}
box{<L-N-0.1,-N+0.1,-R+0.1><L,N+0.1,R+0.1>}}

cylinder{<0,M,0>,<L,M,0>,R} cylinder{<0,-M,0>,<L,-M,0>,R}

#end

object{bar2(1,0.2,5) pigment{rgb 1} translate -2.5*x}

camera{location -5*z look_at 0}

light_source{<5,5,-5> rgb 1}


Post a reply to this message

From: ingo
Subject: Re: Is this a bug or am I missing something obvious?
Date: 11 Nov 2001 16:31:39
Message: <Xns9156E528DD9B0seed7@povray.org>
in news:3beef6e1.13801575@news.povray.org Zen Psycho wrote:

> This stops both 3.1 and 3.5
> I can't for the life of me find anything wrong.  with it.

For me it results in the error:

   difference <----ERROR

Parse Error: No matching } in 'object', difference found instead

Your macro returns three objects where the object{} statement, in 
whitch the macro is called, expects to find only one.
Too solve, put all three objects, inside the macro, in a union{}. 



Ingo

-- 
Photography: http://members.home.nl/ingoogni/
Pov-Ray    : http://members.home.nl/seed7/


Post a reply to this message

From: Zen Psycho
Subject: Re: Is this a bug or am I missing something obvious?
Date: 11 Nov 2001 16:43:02
Message: <3bef00f4.16381118@news.povray.org>
On Sun, 11 Nov 2001 22:11:27 GMT, Ze!nPs### [at] yahoocom (Zen Psycho)
wrote:
Blah .. nevermind.. I think it's because I forgot to put the objects
inside the macro in a union. 
.. not to mention the countless other problems in it... which I am
currently fixing. 


>This stops both 3.1 and 3.5
>I can't for the life of me find anything wrong.  with it.
>
>I think this might be a known bug: but when 3.5 windows  renders it-
>it stops, doesn't show the messages window- and it still says
>PARSING... in the status bar. 
>
>Help! :)
>
>
>#macro bar2(I,R,L)
>
>#local N=I+R+R;
>#local M=N/2-R;
>
>difference{ torus{M,R rotate 90*x}
>box{<0,-N+0.1,-R+0.1><N+0.1,N+0.1,R+0.1>}  }          
>difference{ torus{M,R rotate 90*x translate L*x}
>box{<L-N-0.1,-N+0.1,-R+0.1><L,N+0.1,R+0.1>}}
>
>cylinder{<0,M,0>,<L,M,0>,R} cylinder{<0,-M,0>,<L,-M,0>,R}
>
>#end
>
>object{bar2(1,0.2,5) pigment{rgb 1} translate -2.5*x}
>
>camera{location -5*z look_at 0}
>
>light_source{<5,5,-5> rgb 1}


Post a reply to this message

From: Hugo
Subject: Re: Is this a bug or am I missing something obvious?
Date: 12 Nov 2001 06:28:17
Message: <3befb251@news.povray.org>
But as you said, Pov3.5 beta 7 often forget to display the error message in
the status bar but keeps the word "parsing..."   This is a bug!

Hugo


Post a reply to this message

From:
Subject: Re: Is this a bug or am I missing something obvious?
Date: 12 Nov 2001 06:52:14
Message: <etdvutcbnv574eeevdur2foi1b129lc6g3@4ax.com>
On Mon, 12 Nov 2001 12:31:10 +0100, "Hugo" <hua### [at] post3teledk> wrote:

> But as you said, Pov3.5 beta 7 often forget to display the error message in
> the status bar but keeps the word "parsing..."   This is a bug!

I can confirm. Was this raported in povray.beta-test?

ABX
--
#declare _=function(a,b,x){((a^2)+(b^2))^.5-x}#default {pigment{color rgb 1}}
union{plane{y,-3}plane{-x,-3}finish{reflection 1 ambient 0}}isosurface{ //ABX
function{_(x-2,y,1)|_((x+y)*.7,z,.1)|_((x+y+2)*.7,z,.1)|_(x/2+y*.8+1.5,z,.1)}
contained_by{box{<0,-3,-.1>,<3,0,.1>}}translate z*15finish{ambient 1}}//POV35


Post a reply to this message

From: Anders K 
Subject: Re: Is this a bug or am I missing something obvious?
Date: 12 Nov 2001 11:05:36
Message: <3beff350@news.povray.org>
> > But as you said, Pov3.5 beta 7 often forget to display the error message
in
> > the status bar but keeps the word "parsing..."   This is a bug!
>
> I can confirm. Was this raported in povray.beta-test?

Yes, I had reported this bug already:

http://news.povray.org/3bde062f@news.povray.org


Post a reply to this message

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