def update(self, gp_ax3): self.data = gp_ax3 self.p0.update(gp_ax3.Location()) self.vx.update(self.p0.data, gp_Vec(gp_ax3.XDirection())) self.vy.update(self.p0.data, gp_Vec(gp_ax3.YDirection())) self.vz.update(self.p0.data, gp_Vec(gp_ax3.Direction())) self.trsf.SetTransformation(self.data, gp_Ax3(gp().XOY()))
def __init__(self, cs, *args): pycado_obj.__init__(self, cs, *args) self.data = gp_Ax3(gp().XOY()) self.p0 = point(None, "intern", self.data.Location()) self.vx = vector(None, "intern", self.p0.data, gp_Vec(self.data.XDirection())) self.vy = vector(None, "intern", self.p0.data, gp_Vec(self.data.YDirection())) self.vz = vector(None, "intern", self.p0.data, gp_Vec(self.data.Direction())) self.trsf = None