def PlotNodes(self): Indice=self.Nodes.keys() for i in Indice: self.ax.scatter (self.Nodes[i][0],self.Nodes[i][1],self.Nodes[i][2],c='g') self.LimX=(minComparison(self.LimX[0],self.Nodes[i][0]),MAXComparison(self.LimX[1],self.Nodes[i][0])) self.LimY=(minComparison(self.LimY[0],self.Nodes[i][1]),MAXComparison(self.LimY[1],self.Nodes[i][1])) self.LimZ=(minComparison(self.LimZ[0],self.Nodes[i][2]),MAXComparison(self.LimZ[1],self.Nodes[i][2]))
def PlotShellsLimits(self): try: Indice=self.Skin.keys() self.ArrayShells=[] for i in Indice: for t in (0,3): self.LimX=(minComparison(self.LimX[0],self.Nodes[self.Skin[i][t]][0]),MAXComparison(self.LimX[1],self.Nodes[self.Skin[i][t]][0])) self.LimY=(minComparison(self.LimY[0],self.Nodes[self.Skin[i][t]][1]),MAXComparison(self.LimY[1],self.Nodes[self.Skin[i][t]][1])) self.LimZ=(minComparison(self.LimZ[0],self.Nodes[self.Skin[i][t]][2]),MAXComparison(self.LimZ[1],self.Nodes[self.Skin[i][t]][2])) except: print i
def PlotBarsLimits(self): try: Indice=self.Bars.keys() self.ArrayBars=[] for i in Indice: for t in (0,1): self.LimX=(minComparison(self.LimX[0],self.Nodes[self.Bars[i][t]][0]),MAXComparison(self.LimX[1],self.Nodes[self.Bars[i][t]][0])) self.LimY=(minComparison(self.LimY[0],self.Nodes[self.Bars[i][t]][1]),MAXComparison(self.LimY[1],self.Nodes[self.Bars[i][t]][1])) self.LimZ=(minComparison(self.LimZ[0],self.Nodes[self.Bars[i][t]][2]),MAXComparison(self.LimZ[1],self.Nodes[self.Bars[i][t]][2])) except: dial = wx.MessageDialog(None, 'Error loading file. Nodes of ' + i + ' bar has not been located', 'Error', wx.OK | wx.ICON_ERROR) dial.ShowModal() print self.Nodes[self.Bars[i][3]][0] print self.Nodes[self.Bars[i][3]][1] print self.Nodes[self.Bars[i][3]][2] raise