Return subpaths split at MOVETOs.
(self)
| 477 | prev_vert = verts[-2:] |
| 478 | |
| 479 | def _iter_connected_components(self): |
| 480 | """Return subpaths split at MOVETOs.""" |
| 481 | if self.codes is None: |
| 482 | yield self |
| 483 | else: |
| 484 | idxs = np.append((self.codes == Path.MOVETO).nonzero()[0], len(self.codes)) |
| 485 | for sl in map(slice, idxs, idxs[1:]): |
| 486 | yield Path._fast_from_codes_and_verts( |
| 487 | self.vertices[sl], self.codes[sl], self) |
| 488 | |
| 489 | def cleaned(self, transform=None, remove_nans=False, clip=None, |
| 490 | *, simplify=False, curves=False, |
no test coverage detected