POV-Ray : Newsgroups : povray.beta-test : v36 clippedby bug? : v36 clippedby bug? Server Time
29 Jul 2024 06:16:22 EDT (-0400)
  v36 clippedby bug?  
From: Rafal 'Raf256' Maj
Date: 1 Feb 2004 10:59:05
Message: <Xns9482ACFD8CB68raf256com@203.29.75.35>
Possible bug,
I just found it working on some very small project,


union {
  #local U = union {
    isosurface {
      function {
        +pow(abs(x/2), 2-pow(  (abs(x/2)*2)  ,.5)-abs(z)/5 )
        +pow(abs(y),2)
        +pow(abs(z),2)+abs(z)
        
        -1
      }
      max_gradient 50
      accuracy 1/5000
      contained_by { sphere { 0 3 } }
    }    
  }
  
  object { U clipped_by { box { -1,+1 } }
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

//  object { U translate x*3 }    
//  translate <-2.5,0>  
  scale .4*<1,1,1> 
  
  material { mat2a } 
   
  translate y*1.1/2                                                                   
 
}

adding marked line causes POV to terminate (code core threw an unexpected 
exception...)


File: C:\box\cre\3d\pov\p\p00305\iaaaa.pov  Line: 25
Parse Warning: Should have at least 2 objects in csg.

CPU time used: kernel 0.05 seconds, user 0.02 seconds, total 0.06 seconds
---------------------------------------------------------------------------
-
POV-Ray finished

Returned from renderer due to exception


I'll try to investigate in free time (minimalyze code producing error) but 
there realy isnt anytching much more (just some textures, camera, 
everything wored fine under 35)



-- 
#macro g(U,V)(.4*abs(sin(9*sqrt(pow(x-U,2)+pow(y-V,2))))*pow(1-min(1,(sqrt(
pow(x-U,2)+pow(y-V,2))*.3)),2)+.9)#end#macro p(c)#if(c>1)#local l=mod(c,100
);g(2*div(l,10)-8,2*mod(l,10)-8)*p(div(c,100))#else 1#end#end light_source{
y 2}sphere{z*20 9pigment{function{p(26252423)*p(36455644)*p(66656463)}}}//M


Post a reply to this message

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