Ejemplo n.º 1
0
 def OnCenterOfMassDistanceExt(self, event):
     print("CMCENT EXT")
     indices1, indices2 = self.selectObjects()
     from extern import getCMcentDistance
     plot2d([
         range(len(self.modelNumbers)),
         getCMcentDistance(self.modelNumbers,
                           min(indices1) + 1,
                           max(indices1) + 1,
                           min(indices2) + 1,
                           max(indices2) + 1)
     ], "CM Nora")
Ejemplo n.º 2
0
 def OnCenterOfMassDistanceCompare(self, event):
     print("CMCENT COMPARE")
     from extern import getCMcentDistance
     indices1, indices2 = self.selectObjects()
     #plot WITHOUT treeorb dist
     plot2d([[
         range(len(self.modelNumbers)),
         self.calcCenterOfMassDistance(), "calc"
     ],
             [
                 range(len(self.modelNumbers)),
                 getCMcentDistance(self.modelNumbers,
                                   min(indices1) + 1,
                                   max(indices1) + 1,
                                   min(indices2) + 1,
                                   max(indices2) + 1), "nora"
             ]], "CM compare")
Ejemplo n.º 3
0
 def OnCenterDistanceExtCompare(self, event):
     print("EXT center distance COMPARE")
     indices1, indices2 = self.selectObjects()
     from extern import getMedcentDistance, getCMcentDistance
     plot2d([[
         range(len(self.modelNumbers)),
         getMedcentDistance(self.modelNumbers,
                            min(indices1) + 1,
                            max(indices1) + 1,
                            min(indices2) + 1,
                            max(indices2) + 1), "medcent"
     ],
             [
                 range(len(self.modelNumbers)),
                 getCMcentDistance(self.modelNumbers,
                                   min(indices1) + 1,
                                   max(indices1) + 1,
                                   min(indices2) + 1,
                                   max(indices2) + 1), "cmcent"
             ]], "NORA center distance")
Ejemplo n.º 4
0
		def OnCenterDistanceExtCompare(self, event):
			print("EXT center distance COMPARE")
			indices1, indices2 = self.selectObjects()
			from extern import getMedcentDistance, getCMcentDistance
			plot2d([[range(len(self.modelNumbers)), getMedcentDistance(self.modelNumbers, min(indices1)+1, max(indices1)+1, min(indices2)+1, max(indices2)+1), "medcent"],[range(len(self.modelNumbers)), getCMcentDistance(self.modelNumbers, min(indices1)+1, max(indices1)+1, min(indices2)+1, max(indices2)+1), "cmcent"]], "NORA center distance" )
Ejemplo n.º 5
0
		def  OnCenterOfMassDistanceCompare(self, event):
			print("CMCENT COMPARE")
			from extern import getCMcentDistance
			indices1, indices2 = self.selectObjects()
			#plot WITHOUT treeorb dist
			plot2d([[range(len(self.modelNumbers)), self.calcCenterOfMassDistance(), "calc"],[range(len(self.modelNumbers)), getCMcentDistance(self.modelNumbers, min(indices1)+1, max(indices1)+1, min(indices2)+1, max(indices2)+1), "nora"]], "CM compare" )
Ejemplo n.º 6
0
		def  OnCenterOfMassDistanceExt(self, event):
			print("CMCENT EXT")
			indices1, indices2 = self.selectObjects()
			from extern import getCMcentDistance
			plot2d([range(len(self.modelNumbers)), getCMcentDistance(self.modelNumbers, min(indices1)+1, max(indices1)+1, min(indices2)+1, max(indices2)+1)], "CM Nora" )