Skip to main content
  • 10k+ Posts
  • 52,934 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

Badge Winners

  • Integrate Spatial Data
    nasr21289has earned the badge Integrate Spatial Data
  • FME Certified Professional
    maplinuxhas earned the badge FME Certified Professional
  • Student (Bronze)
    keithhastingshas earned the badge Student (Bronze)
  • Welcome Back
    keithhastingshas earned the badge Welcome Back
  • Teacher (Grey)
    tejhas earned the badge Teacher (Grey)
Show all badges

Community Stats

32,049
Posts
121,693
Replies
39,670
Members

Latest FME