POV-Ray : Newsgroups : povray.unofficial.patches : trace() doesn't work with method 2 isosurfaces? : Re: trace() doesn't work with method 2 isosurfaces? Server Time
2 Sep 2024 00:18:56 EDT (-0400)
  Re: trace() doesn't work with method 2 isosurfaces?  
From: Fabien Mosen
Date: 25 Jul 2000 21:23:39
Message: <397E3C7E.326EABF7@skynet.be>
Appending the following code to the code you provided, it works
perfectly well in my MegaPOV 0.5A, Win95.  Hope this could help in
debugging purposes.

#include "colors.inc"

camera {location <10,10,10> direction z*1 look_at <0,0,0>}

object {Torus2 pigment {White}}

#declare MinX=-5;
#declare MinZ=-5;
#declare MaxX=5;
#declare MaxZ=5;
#declare ScanStep=.5;
#declare ScanHeight=5;
#declare StockNormal=<0,0,0>;

#declare I=MinX;
#while (I < MaxX)
 #declare J=MinZ;
 #while (J < MaxZ)
   #declare FoundPoint = 
    trace (Torus2,<I,ScanHeight,J>,-y,StockNormal);  
 
    disc {FoundPoint,StockNormal,.15 pigment {Red}}
 
 #declare J=J+ScanStep;
 #end
#declare I=I+ScanStep;
#end

light_source {<400,500,300> White*2}


Post a reply to this message

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