From 8ebcdf8ac7451e3db7988b7d6d503f88efd94bbb Mon Sep 17 00:00:00 2001 From: Bernd Hahnebach Date: Thu, 15 Feb 2018 18:06:21 +0100 Subject: [PATCH] FEM: mesh tools, fix missing initialization --- src/Mod/Fem/femmesh/meshtools.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Mod/Fem/femmesh/meshtools.py b/src/Mod/Fem/femmesh/meshtools.py index cf73c60d43..eb5fb8d592 100644 --- a/src/Mod/Fem/femmesh/meshtools.py +++ b/src/Mod/Fem/femmesh/meshtools.py @@ -478,6 +478,10 @@ def get_beam_normal(beam_direction, defined_angle): else: temp_valz = 0 + Dot_product_check_x = None + Dot_product_check_y = None + Dot_product_check_z = None + Dot_product_check_nt = None if vector_a[0] != 0 and vector_a[1] == 0 and vector_a[2] == 0: normal_n = [temp_valx, nx, ny] Dot_product_check_x = vector_a[0] * normal_n[0] + vector_a[1] * normal_n[1] + vector_a[2] * normal_n[2]