lo1
@lo1
New Member
Joined: Feb 14, 2024
Topics: 44 / Replies: 1920
Reply
RE: .net sdk memory management problem

Shouldn’t you also be disposing the IList<IPoint3> returned from mesh.MapVerts(Channel) and the IPoint3’s returned from mesh.GetVert(i)?

10 years ago
Forum
Reply
RE: .net sdk memory management problem

I noticed that the IPoint3 also implements IDisposable, so i’ll call that one too. Why on earth would they implement Point3 as a class, not to mentio…

10 years ago
Forum
Reply
RE: MEL command for objectoffsetpos?

You’re more likely to get an answer in the Maya related forums.

10 years ago
Forum
Reply
RE: (SDK) Get access to stack undo?

I assume this information is stored inside the HoldStore class, which is defined in max source code but only forward declared in the hold.h in the SDK…

10 years ago
Forum
Reply
RE: Speed up finding closest vertex?

Well, it won’t really be 0.004ms, because you won’t need the argument checks and casting for every iteration, and you can do it with a squared version…

10 years ago
Forum
Reply
RE: Speed up finding closest vertex?

In conclusion… MAXScript is inherently a slow language no matter what we do. fn MxsIsSlow = ( for v = 1 to 1000000 do ( ) ) ts = timestamp() …

10 years ago
Forum
Reply
RE: Speed up finding closest vertex?

denisT: you have to do it anyway with c# solution… after that you have to make an array suitable for your c# it will time as well… finally we will h…

10 years ago
Forum
Reply
RE: Speed up finding closest vertex?

I disagree, this can be proved with this test: fn getClosestMeshVert1 mesh point = ( local vert, dist = 1e9 for v=1 to mesh.numverts where (d = di…

10 years ago
Forum
Reply
RE: Speed up finding closest vertex?

I haven’t measured yet, but probably not as much as you think, I do it like this: public void SetVertices(float[] values) { for…

10 years ago
Forum
Reply
RE: Speed up finding closest vertex?

Unless I’m missing something, seems it can do it more than 100 times faster. Here’s some messy LINQPad code. struct Vector3 { public float X; …

10 years ago
Forum
Reply
RE: Speed up finding closest vertex?

Similar to post #5 of this thread

10 years ago
Forum
Reply
RE: Speed up finding closest vertex?

More on the naive algorithm, without any sorting or acceleration grids: I gave it a try in c# just for fun, and surprisingly it was around 30 times f…

10 years ago
Forum
Reply
RE: Speed up finding closest vertex?

No, let’s take a look at the new one

10 years ago
Forum
Reply
RE: How "or" "||" Comparison operator ?

I think you’re looking to use AND, not OR. print (if (a != b AND a != c) then “not equal” else “equal”) ========================== If you look at t…

10 years ago
Forum
Reply
RE: How "or" "||" Comparison operator ?

there is no || && ! in maxscript. It is or and not

10 years ago
Forum
Page 21 / 131