...
--Returns the vector direction from the center of iFace on oNode to the origin of oNodefn
GetOriginToFaceDirection oNode iFace = (
local vFaceCenter = meshop.getfacecenter oNode iFace iFace
local vDiff = vFaceCenter - oNode.position position
normalize vDiff
)
Determine if two faces point generally the same direction
...