| 
|  |  |  
|  |  |  |  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |  |  |  
|  |  | 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
 |  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |  |  |  
|  |  | 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
 |  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |  |  |  
|  |  | Thomas de Groot <tho### [at] degroot org> 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
 |  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |  |  |  
|  |  | > 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
 |  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |  |  |  
|  |  | 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
 |  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |  |