@@ -93,23 +93,21 @@ def contextMenuEvent(self, event):
9393 def add_scalar_field (self , feature_name ):
9494 scalar_field = self .model_manager .model [feature_name ].scalar_field ()
9595 self .viewer .add_mesh_object (scalar_field .vtk (), name = f'{ feature_name } _scalar_field' )
96- print (f"Adding scalar field to feature: { feature_name } " )
9796
9897 def add_surface (self , feature_name ):
9998 surfaces = self .model_manager .model [feature_name ].surfaces ()
10099 for surface in surfaces :
101100 self .viewer .add_mesh_object (surface .vtk (), name = f'{ feature_name } _surface' )
102- print (f"Adding surface to feature: { feature_name } " )
103101
104102 def add_vector_field (self , feature_name ):
105103 vector_field = self .model_manager .model [feature_name ].vector_field ()
106104 scale = self ._get_vector_scale ()
107105 self .viewer .add_mesh_object (vector_field .vtk (scale = scale ), name = f'{ feature_name } _vector_field' )
108- print (f"Adding vector field to feature: { feature_name } " )
109106
110107 def add_data (self , feature_name ):
111108 data = self .model_manager .model [feature_name ].get_data ()
112109 for d in data :
110+ d .locations = self .model_manager .model .rescale (d .locations )
113111 if issubclass (type (d ), VectorPoints ):
114112 scale = self ._get_vector_scale ()
115113 # tolerance is None means all points are shown
0 commit comments