POV-Ray : Newsgroups : povray.general : Door_macro_test Server Time
25 Nov 2024 17:24:25 EST (-0500)
  Door_macro_test (Message 1 to 5 of 5)  
From: StephenS
Subject: Door_macro_test
Date: 9 Oct 2013 19:45:00
Message: <web.5255e9e5b7e1273c9cc808ee0@news.povray.org>
I have posted Door_macro_test.pov in povray.text.scene-files.

I am trying to:
#macro Door_profile (Dp_width, Dp_thickness, Dp_bevel, Dp_seam, Dp_front_gauge,
Dp_back_gauge)
....
#end

#declare My_door = Door_profile (35+11/16, 1+3/4, 1/8, 1, 16, 14);

My_door

This works and I get the Door_profile object.

Instead of My_door, I use:
difference{
 My_door
 box{<0,0,0>,<1.25,1,1> translate <.25,1,0>}
 cutaway_textures <1,0,0>
}

I get an error:
"Door_macro_test.pov" line 228: Parse Error: No matching } in 'difference', box
found instead

Render failed

It may have to do with returning from a macro? I'm not sure what to look for.

Stephen S


Post a reply to this message

From: Thomas de Groot
Subject: Re: Door_macro_test
Date: 10 Oct 2013 03:39:58
Message: <525659ce$1@news.povray.org>
On 10-10-2013 1:42, StephenS wrote:
> Instead of My_door, I use:
> difference{
>   My_door
>   box{<0,0,0>,<1.25,1,1> translate <.25,1,0>}
>   cutaway_textures <1,0,0>
> }
>

have you tried

object{My_door}

in the code above? Maybe that will work.

Thomas


Post a reply to this message

From: StephenS
Subject: Re: Door_macro_test
Date: 10 Oct 2013 17:20:01
Message: <web.525718f58f149a73a53ab63b0@news.povray.org>
Thomas de Groot <tho### [at] degrootorg> wrote:
> On 10-10-2013 1:42, StephenS wrote:
> > Instead of My_door, I use:
> > difference{
> >   My_door
> >   box{<0,0,0>,<1.25,1,1> translate <.25,1,0>}
> >   cutaway_textures <1,0,0>
> > }
> >
>
> have you tried
>
> object{My_door}
>
> in the code above? Maybe that will work.
>
> Thomas

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

Stephen S


Post a reply to this message

From: StephenS
Subject: Re: Door_macro_test
Date: 10 Oct 2013 17:30:00
Message: <web.52571c4f8f149a73a53ab63b0@news.povray.org>
> Instead of My_door, I use:
> difference{
>  My_door
>  box{<0,0,0>,<1.25,1,1> translate <.25,1,0>}
>  cutaway_textures <1,0,0>
> }
I think i've found it.

Nothing should be after the cutaway_textures

difference{
 My_door
 box{<0,0,0>,<1.25,1,1> translate <.25,1,0>}
 cutaway_textures
}

Stephen S


Post a reply to this message

From: Thomas de Groot
Subject: Re: Door_macro_test
Date: 11 Oct 2013 03:14:57
Message: <5257a571$1@news.povray.org>
On 10-10-2013 23:29, StephenS wrote:
> I think i've found it.
>
> Nothing should be after the cutaway_textures
>
> difference{
>   My_door
>   box{<0,0,0>,<1.25,1,1> translate <.25,1,0>}
>   cutaway_textures
> }

Oops! I did not see that. The most obvious things are the most difficult.

Thomas


Post a reply to this message

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