(self)
| 2045 | .transform(verts) |
| 2046 | |
| 2047 | def _recompute_path(self): |
| 2048 | # circular arc |
| 2049 | arc = Path.arc(0, 360) |
| 2050 | |
| 2051 | # annulus needs to draw an outer ring |
| 2052 | # followed by a reversed and scaled inner ring |
| 2053 | a, b, w = self.a, self.b, self.width |
| 2054 | v1 = self._transform_verts(arc.vertices, a, b) |
| 2055 | v2 = self._transform_verts(arc.vertices[::-1], a - w, b - w) |
| 2056 | v = np.vstack([v1, v2, v1[0, :], (0, 0)]) |
| 2057 | c = np.hstack([arc.codes, Path.MOVETO, |
| 2058 | arc.codes[1:], Path.MOVETO, |
| 2059 | Path.CLOSEPOLY]) |
| 2060 | self._path = Path(v, c) |
| 2061 | |
| 2062 | def get_path(self): |
| 2063 | if self._path is None: |
no test coverage detected