setfocus ? rollout testFocus “Test Focus” ( edittext text1 “Test” edittext text2 “Focus” ) createDialog testFocus 200 100…
normal routine for this sort of thing is fn isLeft a b p = ((b.x – a.x) * (p.y – a.y) – (p.x – a.x) * (b.y – a.y)) if it’s greater than zero then p …
using the GDI can work but has issues, I found a solution in the end to not having working w & h routines and issues in perspective when zoomed o…
boolval as integer should work
slight variation ( fn random_shuffle arr seeding: = ( if seeding != unsupplied do seed seeding; for i = 1 to arr.count – 1 do ( j = rand…
I know but you still get weirdness if there are no actual maps then it’s the number of hidden (2) (though these may or may not be actually used) if …
OK because non hidden maps start at 1 as 0 is a hidden map so even if not supported vert colour map (0) counts towards the total because 1 is the seco…
takes about 0.8 secs to do it 10,000 times @ 0.1 prec on that shape, i removed the debug code though
no probs i get this… shape001.jpg1276x790 20.9 KB a slight deviation I have my xml format for handling max shapes if you’re interested… xmlshape….
here it is as a 2010 max file shape.max (184 KB)
quite a fun routine… the original c++ works on polys with holes (any other poly after the “first”)… could possibly use if for some kind of mapping lay…
is the routine “alignment” dependent ? as local values give different result to world values. Perhaps not, strange things going on
wish I could help but after looking at the c++ source, I’m ooot that’s just some nasty nasty coding. Look around for another implementation would be m…