haavard
@haavard
New Member
Joined: Feb 15, 2024
Topics: 16 / Replies: 100
Reply
RE: .net sdk memory management problem

C#. I replaced the for loop with just this: Parallel.For(0, numMapVerts, i => …

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

With 40k verts using parallel.for I got ~23 seconds on 10k iterations, and ~37 seconds using the single threaded version. So that is pretty cool.

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

I’ll test all these potential optimizations when I get back home from work. I appreciate all the tips so far! PolyTools3D: Beautiful! Tried wi…

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

That is a good point. I can’t tell you much about the requirements of the tool, I was just helping a guy to speed it up, and basically converted each…

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

This is really great, thanks Jorge!

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

Thanks! I will test it when I get back from work. I noticed that the IPoint3 also implements IDisposable, so i’ll call that one too.

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

The mxs version did perform well on ~1k vertices, but it had problems with anything much higher than that. The .net function runs at 15 fps on my old …

10 years ago
Forum
Topic
Forum
Replies: 56
Views: 94
Reply
RE: ouput to the Mxs listener from C# / Dotnet

Autodesk.Max.GlobalInterface.Instance.TheListener.EditStream.Printf() to print to the listener window or Debug.Writeline() if you want to write to…

11 years ago
Forum
Reply
RE: Max scene icon

Here is the messy c# version of Klvnk’s code:

11 years ago
Forum
Reply
RE: Custom attributes .net events

Thanks. I ended up running the intended maxscript event code from my wpf control instead.

11 years ago
Forum
Reply
RE: Custom attributes .net events

Thanks, but it’s not what im after. My gui is a wpf control, hence the elementhost control.

11 years ago
Forum
Topic
Forum
Replies: 5
Views: 21
Reply
RE: dotNetObject "maxCustomControls.win32HandleWrapper" missing in Max 2015?

Look at So the code would be something like this, no? I dont have max around atm. nw = DotNetObject “System.Windows.Forms.NativeWindow” nw.AssingH…

11 years ago
Forum
Reply
RE: Executing maxscript ans python via Sublime

The AttachThreadInput from that source was a cool way of doing it. I wonder if it cleans up well after quitting/restarting the sublime script.

11 years ago
Forum
Page 2 / 8