POV-Ray : Newsgroups : povray.unofficial.patches : trace() not working with isosurfaces? : Re: trace() not working with isosurfaces? Server Time
2 Sep 2024 02:16:49 EDT (-0400)
  Re: trace() not working with isosurfaces?  
From: Fabien Mosen
Date: 18 Jul 2000 14:52:37
Message: <3974A638.DEF5AC4F@skynet.be>
The problem is due to the fact that you use the same variable
names in the macro and in the loop.  This works :

#macro PlaceTree(ax, az)
  #local Normal=<0, 0, 0>;
  #local Where = trace(Landscape, <ax, 10, az>, <0, -1, 0>, Normal);
  #if (Normal.x = 0 & Normal.y = 0 & Normal.z = 0)
    #warning "Tree not placed\n"
  #else
    object {Tree translate Where}
  #end
#end


Post a reply to this message

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