def get_trafo_snapshot(self): cpaths = [] for i in range(len(self.cache_cpath)): if self.cache_cpath[i] is None: cpaths.append(None) else: cpaths.append(libgeom.copy_cpath(self.cache_cpath[i])) trafos = deepcopy(self.trafos) return (self, [] + self.trafo, [] + self.fill_trafo, [] + self.stroke_trafo, [] + self.cache_bbox, cpaths, trafos)
def get_trafo_snapshot(self): return (self, [] + self.trafo, [] + self.fill_trafo, [] + self.stroke_trafo, [] + self.cache_bbox, libgeom.copy_cpath(self.cache_cpath))