Klvnk
@klvnk
New Member
Joined: Feb 14, 2024
Topics: 50 / Replies: 1212
Reply
RE: Setfocus problem

setfocus ? rollout testFocus “Test Focus” ( edittext text1 “Test” edittext text2 “Focus” ) createDialog testFocus 200 100…

3 years ago
Forum
Reply
RE: How to check if a vector goes CW or CCW around another perpendicular vector?

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 …

3 years ago
Forum
Reply
RE: Would Drawing directly to a GraphicWindow HWND

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…

3 years ago
Forum
Topic
Forum
Replies: 1
Views: 23
Reply
3 years ago
Forum
Reply
RE: Randomize selection array

slight variation ( fn random_shuffle arr seeding: = ( if seeding != unsupplied do seed seeding; for i = 1 to arr.count – 1 do ( j = rand…

3 years ago
Forum
Reply
RE: getNumMaps

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 …

3 years ago
Forum
Reply
RE: getNumMaps

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…

3 years ago
Forum
Topic
3 years ago
Forum
Replies: 3
Views: 15
Reply
RE: Find visual center of contour/polygon

takes about 0.8 secs to do it 10,000 times @ 0.1 prec on that shape, i removed the debug code though

3 years ago
Forum
Reply
RE: Find visual center of contour/polygon

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….

3 years ago
Forum
Reply
RE: Find visual center of contour/polygon

here it is as a 2010 max file shape.max (184 KB)

3 years ago
Forum
Reply
RE: Find visual center of contour/polygon

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…

3 years ago
Forum
Reply
RE: Find visual center of contour/polygon

is the routine “alignment” dependent ? as local values give different result to world values. Perhaps not, strange things going on

3 years ago
Forum
Reply
RE: Find visual center of contour/polygon

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…

3 years ago
Forum
Page 7 / 85