Skip to main content
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

Badge Winners

  • FME Form Basic Training
    raju.byraganihas earned the badge FME Form Basic Training
  • Integrate Data with the FME Platform Training
    moomooqwerty127has earned the badge Integrate Data with the FME Platform Training
  • Online Training
    moomooqwerty127has earned the badge Online Training
  • FME Form Basic Training
    pmjacobshas earned the badge FME Form Basic Training
  • FME Form Basic Training
    simhichas earned the badge FME Form Basic Training
Show all badges

Community Stats

32,070
Posts
121,771
Replies
39,696
Members

Latest FME