self.widget = NGSWebGuiWidget() d = self.GetData() self.widget.value = d display(self.widget) def Redraw(self): d = self.GetData(set_minmax=False) self.widget.value = d def __repr__(self): return "" bezier_trig_trafos = {} # cache trafos for different orders timer = ngs.Timer("BuildRenderData") timer2 = ngs.Timer("edges") timermult = ngs.Timer("timer2 - mult") timer3 = ngs.Timer("els") timer3Bvals = ngs.Timer("timer3, bezier") timer3minmax = ngs.Timer("els minmax") timer2list = ngs.Timer("timer2 - make list") timer3list = ngs.Timer("timer3 - make list") timer4 = ngs.Timer("func") def BuildRenderData(mesh, func, order=2, draw_surf=True, draw_vol=True,
if eval_ is not None: if isinstance(eval_, int): d['eval'] = eval_ elif eval_ == 'norm': d['eval'] = 3 elif eval_ == 'real': d['eval'] = 5 elif eval_ == 'imag': d['eval'] = 6 return d bezier_trig_trafos = {} # cache trafos for different orders timer = ngs.Timer("BuildRenderData") timer2map = ngs.Timer("edges map") timer2 = ngs.Timer("edges") timermult = ngs.Timer("timer2 - mult") timer3 = ngs.Timer("els") timer3Bvals = ngs.Timer("timer3, bezier") timer3minmax = ngs.Timer("els minmax") timer2list = ngs.Timer("timer2 - make list") timer3list = ngs.Timer("timer3 - make list") timer4 = ngs.Timer("func") timer3multnumpy = ngs.Timer("timer3 mul numpy") timer3multngs = ngs.Timer("timer3 mul ngs") def BuildRenderData(mesh,