2009-10-26 08:34 PM
R = 0.2 mat = SYMB_MAT for k = 1 to 2 body -1 s = 11 + 4*(k=2) + 64 hprism_ mat, mat, mat, mat, 10, 1, 0, R*0.5, 1, R , 0 , s, 1-R, 0 , s, 1 , R , s+1000, 1 , 1-R, s, 1-R, 1 , s+1000, R , 1 , s, 0 , 1-R, s+1000, 0 , R , s, R , 0 , s+1000, R , 0 ,-1 addx 1.5 next k del 2
2009-10-26 09:15 PM
R = 0.2 mat = SYMB_MAT for s = 1 to 99 body -1 hprism_ mat, mat, mat, mat, 10, 1, 0, R*0.5, 1, R , 0 , s, 1-R, 0 , s, 1 , R , s+1000, 1 , 1-R, s, 1-R, 1 , s+1000, R , 1 , s, 0 , 1-R, s+1000, 0 , R , s, R , 0 , s+1000, R , 0 ,-1 addx 1.5 next kBut I have a dirty fix for you:
R = 0.2 mat = SYMB_MAT IF GLOB_CONTEXT=4 THEN k=2 ELSE k=1 ENDIF body -1 s = 11 + 4*(k=2) + 64 hprism_ mat, mat, mat, mat, 10, 1, 0, R*0.5, 1, R , 0 , s, 1-R, 0 , s, 1 , R , s+1000, 1 , 1-R, s, 1-R, 1 , s+1000, R , 1 , s, 0 , 1-R, s+1000, 0 , R , s, R , 0 , s+1000, R , 0 ,-1
2009-10-26 10:18 PM
Master wrote:I'm aware of these "global_context" workarounds. I'm not satified with them.
No, you are not missing something. I always check with this code, because these status codes always confuse me
But I have a dirty fix for you:
2009-10-27 01:01 AM
2009-10-27 08:01 AM
Jeffrey wrote:Sorry, I don't think so. My status code just means 11+64 (first) , and 15+64 (second).
It's because one instance is s = 11 + 4 + 64 and all else s = 11 + 8 + 64
k is a variable and increases with each for/next and at this point it is still 1 to 2.
for k = 1 to 2 step 1
s = 11 + 4 + 64
HTH
2009-10-27 10:37 AM
Olivier wrote:
This is an old feature, which I always found annoying.
2009-10-27 02:35 PM
Olivier wrote:Regardless of what you think the computer disagrees. While you will get no argument about the inconsistencies of the status and mask values from me. The math in GDL, however inaccurate, is consistent. 14 + 64 would be (11+(4*1)) +64 and you are our of luck with 15 because if and when k =2, which it does only after the first instance of the object you get 19 provided it is written correctly or you get 8 the way you have written it.
Sorry, I don't think so. My status code just means 11+64 (first) , and 15+64 (second).
"step 1", is the default setting, thus it is implicit. No need to write it.
2009-10-27 06:51 PM
Jeffrey wrote:I don't follow you.
Regardless of what you think the computer disagrees. While you will get no argument about the inconsistencies of the status and mask values from me. The math in GDL, however inaccurate, is consistent. 14 + 64 would be (11+(4*1)) +64 and you are our of luck with 15 because if and when k =2, which it does only after the first instance of the object you get 19 provided it is written correctly or you get 8 the way you have written it.
for k = 1 to 2 s = 11 + 4*(k=2) + 64 print s next kIt returns 75 and 79. All is fine.
2009-10-27 08:42 PM
Olivier wrote:Wow, You have serious accuracy issues then.Jeffrey wrote:I don't follow you.
Regardless of what you think the computer disagrees. While you will get no argument about the inconsistencies of the status and mask values from me. The math in GDL, however inaccurate, is consistent. 14 + 64 would be (11+(4*1)) +64 and you are our of luck with 15 because if and when k =2, which it does only after the first instance of the object you get 19 provided it is written correctly or you get 8 the way you have written it.
for k = 1 to 2 s = 11 + 4*(k=2) + 64 print s next kIt returns 75 and 79. All is fine.
My remark was about status code 11+64 (75). I don't want 15+64 (79).
64*j7 controls the viewpoint dependent visibility of the current vertical edge.
I was wondering about a similar feature for the horizontal top edge visibility.
2009-10-27 09:08 PM
Jeffrey wrote:Are you joking?
Wow, You have serious accuracy issues then.