def _prepare_points(self):
transform = self.get_transform()<EOL>transOffset = self._transOffset<EOL>offsets = self._offsets<EOL>paths = self.get_paths()<EOL>if self.have_units():<EOL><INDENT>paths = []<EOL>for path in self.get_paths():<EOL><INDENT>vertices = path.vertices<EOL>xs, ys = vertices[:, <NUM_LIT:0>], vertices[:, <NUM_LIT:1>]<EOL>xs = self.convert_xunits(xs)<EOL>ys = self.convert_yunits(ys)<EOL>paths.append(mpath.Path(zip(xs, ys), path.codes))<EOL><DEDENT>if len(self._offsets):<EOL><INDENT>xs = self.convert_xunits(self._offsets[:<NUM_LIT:0>])<EOL>ys = self.convert_yunits(self._offsets[:<NUM_LIT:1>])<EOL>offsets = zip(xs, ys)<EOL><DEDENT><DEDENT>offsets = np.asarray(offsets, np.float_)<EOL>if not transform.is_affine:<EOL><INDENT>paths = [transform.transform_path_non_affine(<EOL>path) for path in paths]<EOL>transform = transform.get_affine()<EOL><DEDENT>if not transOffset.is_affine:<EOL><INDENT>offsets = transOffset.transform_non_affine(offsets)<EOL>transOffset = transOffset.get_affine()<EOL><DEDENT>return transform, transOffset, offsets, paths<EOL>
Point prep for drawing and hit testing