Пример #1
0
 def translate_all(self, axis, d):
     '''
     Tranlsate all wireframes on the screen.
     Args:
         :param axis: (str) a string, 'x', 'y', or 'z' indicating the axis to translate
         :param d: (float/int) a value telling how much to translate the specified axis
     '''
     for _, wireframe in self.wireframes.items():
         wireframe.translate(axis, d)
Пример #2
0
 def translateAll(self, axis, d):  # Translate all wireframes
     for wireframe in self.wireframes.values():
         wireframe.translate(axis, d)
Пример #3
0
    def translateAll(self, axis, d):
        """ Translate all wireframes along a given axis by d units. """

        for wireframe in self.wireframes.itervalues():
            wireframe.translate(axis, d)
Пример #4
0
	def translateAll(self, axis, d):
		for wireframe in self.wireframes.itervalues():
			wireframe.translate(axis, d)
    def translateAll(self, axis, d):
        """ Translate all wireframes along a given axis by d units. """

        for wireframe in self.wireframes.itervalues():
            wireframe.translate(axis, d)