Skip to main content
  • 10000+ Posts
  • 53,582 Replies
10000+ Posts
PYTHON Cross and Dot product function with logic with Directional Vector??

Hello  It says Translation is Successful, but i dont't see the any out , am i doing something horribly wrong or missing some setup ?  Python Caller  import fmeimport fmeobjectsimport numpy as np class FeatureProcessor(object): def __init__(self):pass      def input(self, feature):           def myfunction(L, F, DX, DY, DZ):       DLF = [0,0,-1]       ULF = [0,0,1]       NLF = [0,1,0]       SLF = [0,-1,0]       ELF = [1,0,0]       WLF = [-1,0,0]             if L == "D":         UAP = DLF       elif L == "U":         UAP = ULF       elif L == "N":         UAP = NLF       elif L == "S":         UAP = SLF       elif L == "E":         UAP = ELF       elif L == "W":         UAP = WLF               if F == "D":         FAP = DLF       elif F == "U":         FAP = ULF       elif F == "N":         FAP = NLF       elif F == "S":         FAP = SLF       elif F == "E":         FAP = ELF       elif F == "W":         FAP = WLF                 VAP = np.cross(FAP, UAP)       DU,DV,DN = np.linalg.inv(n