Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

--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

...