POV-Ray : Newsgroups : povray.general : Door_macro_test : Door_macro_test Server Time
29 Jul 2024 00:25:44 EDT (-0400)
  Door_macro_test  
From: StephenS
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

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