POV-Ray : Newsgroups : povray.beta-test : [includes] VPow does not work : Re: [includes] VPow does not work Server Time
29 Jul 2024 14:15:15 EDT (-0400)
  Re: [includes] VPow does not work  
From: Warp
Date: 15 Jun 2002 17:19:44
Message: <3d0baf70@news.povray.org>
This is probably a bit faster:

#macro VectorSize(V)
  #local tmp = val(vstr(5, (V=V), "", 0, 0));
  (1+(tmp>10000)+(tmp>11000)+(tmp>11100)+(tmp>11110))
#end

#declare V1 = 0;
#declare V2 = <1,2>;
#declare V3 = <3,4,5>;
#declare V4 = <3,4,5,6>;
#declare V5 = <6,7,8,9,10>;

#debug concat("Size of V1: ", str(VectorSize(V1),0,0),
            "\nSize of V2: ", str(VectorSize(V2),0,0),
            "\nSize of V3: ", str(VectorSize(V3),0,0),
            "\nSize of V4: ", str(VectorSize(V4),0,0),
            "\nSize of V5: ", str(VectorSize(V5),0,0), "\n")


-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

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