def draw(self, pipeline): for px in np.arange(-1, 1 + 1 / self.N, 1 / self.N): for py in (-1, 1): self.model.transform = tr.translate(px, py, 0) sg.drawSceneGraphNode(self.model, pipeline, "transform") for py in np.arange(-1, 1, 1 / self.N): for px in (-1, 1): self.model.transform = tr.translate(px, py, 0) sg.drawSceneGraphNode(self.model, pipeline, "transform")
def draw(self, pipeline): self.model.transform = tr.translate(0, 0, 0) sg.drawSceneGraphNode(self.model, pipeline, "transform")
def draw(self, pipeline): px = self.posicion_x py = self.posicion_y self.model.transform = tr.translate(px, py, 0) sg.drawSceneGraphNode(self.model, pipeline, "transform")
def draw(self, pipeline, pos_x, pos_y): self.model.transform = tr.translate(pos_x, pos_y, 0) sg.drawSceneGraphNode(self.model, pipeline, "transform")