NACA Airfoil script

 From:  Hamish Mead (HAIRYKIWI)
7265.4 In reply to 7265.2 
Hi Michael, Many thanks for your reply.

I'd read about the method you're suggesting in another thread, so I'll definitely try it out. Sorry to take your time explaining it again.

I wrote for help initially thinking I was just overlooking a method for getting a complete point array, and that inherently it would be more efficient. I had overlooked it, (just discovered a few moments ago). It isn't noticeably any more efficient execution time-wise, for the same reasons you already gave I guess. But it is MUCH easier to read, so I'll be content with that:

(1) code:
FactoryAirfoil.setInput( g, PointObjectListUpper.item(num_stations - g).pt.get);

(2) code:
FactoryAirfoil.setInput( g, moi.vectorMath.createPoint( PointObjectListUpper.item(num_stations - g).pt.x, PointObjectListUpper.item(num_stations - g).pt.y, PointObjectListUpper.item(num_stations - g).pt.z ) );

Method (1) works equally as well as my original (2).

I'll try to post the script tomorrow.

Cheers,
Hamish