Show messages:
1-8
9-28
29-32
From: Michael Gibson
Hi Marco, so for the slider case it should definitely work to get the lengths once when it first starts up, and then refer back to that when the sliders are manipulated rather than doing it every time.
And if a loop through the cached lengths is taking significant time for the loop itself it should also be possible to optimize the script in other ways that are specific to its own particular needs. For example after gathering the lengths it could sort them so it could do a binary search rather than a full loop. But I would recommend a simple approach first.
These methods are appropriate to implement within the script itself, I would not expect to implement them in MoI's API directly. The stuff at the API level is more for general purpose stuff that may be used by many different scripts.
- Michael
From: mkdm
@You : "...For example after gathering the lengths it could sort them so it could do a binary search rather than a full loop..."
Yes! I was thinking about this solution too.
Thanks a lot for suggestion.
@You : "...I would not expect to implement them in MoI's API directly..."
OK Michael. Understood :)
I hope that for V4 you could add at least "getArea()" method.....but I hope more...
Thank you very much for this very interesting conversation.
Have a nice day.
From: Michael Gibson
You're welcome Marco!
From: mkdm
Hi Michael.
So...after the long conversation I've produced some little thing.
I hope that this is only the first step :)
Please read it at
http://moi3d.com/forum/index.php?webtag=MOI&msg=8608.1
Thanks a lot.
Show messages:
1-8
9-28
29-32