Hi Michael.
Thank you very much for taking the time to write such a detailed reply. Much appreciated.
@You : "...just adding in a .getArea() method for breps and faces would be enough to enable this..."
OK. Thank's a lot. This could be very helpful!
Could you add it right now for the current version of Moi or you're always referring to the upcoming V4 ?
With that said...
Well...I read your reply with great interest and, of course, I can agree with you that some of the things that I mentioned
would involve writing some extension or maybe a rethink of some area of Moi's Api.
And I can understand that this would not be an effortless work :)
But this part of your sentence puzzles me a little bit :
"...I wouldn't really expect any performance difference from looping through them as you would do currently."
I say this because I assumed that making a call of any method directly compiled into Moi's core engine (or DLLs)
must be many times faster that the code executed inside a loop within some script, that, more or less (I assume), must run
into some kind of scripting environment that should "talk" in some way to the Moi's core engine.
I don't know if I made myself clear.
What I want to say is this : Let's say, for example, we want to filter all closed curves.
Now...one thing is to write a script that should filter all curves with getCurves() and, inside a loop, on each curve should call another method to check if it is opened or not.
A different thing (I think) is to write a script that simply could make a call to a method named getclosedCurves() to get all closed curves in one single shot.
Because, I think, in this case that method can make a direct query into the Moi's Object Model and not within the scripting environment.
I don't know if I'm thinking right.
Anyway, thanks a lot for your help!
Have a nice day...or night...i don't know what's your meridian :)
Ciao.
Marco (mkdm)
|