Performance of vectorMath.createPoint

 From:  guschard
9831.1 
Hi,

I made a simple script initializing 3.000 points, and it takes around 5 seconds to execute. As I'm only initializing the points, I would expect it to take just a few miliseconds. Why does that happen?? Is there a overhead in calling the moi.vectorMath.createPoint function?? If so, is there any way to initialize a list of points at once??

The code is pretty simple, so I'll post it here;

var t0 = new Date();
var n = 3000;

for(var k = 0; k <= n; k++)
var pt = moi.vectorMath.createPoint(0, 0, 0);

var t1 = new Date();
moi.ui.commandUI.alert((t1 - t0).toString());

Thank you very much