Commit 1e2fea7
Simplify use of Path._fast_from_codes_and_verts. (#12868)
All uses of Path._fast_from_codes_and_verts create the internals dict by
copying the attribute from another Path. Instead of having the caller
create that dict, just let him pass a Path from which to copy the
attributes.
Note that this means that the copying will now also use the
simplify_threshold from the previous Path; however I think it is clear
that the previous behavior of not copying it was an oversight
(compounded by the fact that simplify_threshold is rarely, if ever,
overwritten on a per-Path basis).1 parent 61dec52 commit 1e2fea7
2 files changed
Lines changed: 26 additions & 36 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
| 160 | + | |
161 | 161 | | |
162 | | - | |
| 162 | + | |
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
173 | 173 | | |
174 | | - | |
175 | 174 | | |
176 | 175 | | |
177 | 176 | | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
189 | 186 | | |
190 | 187 | | |
191 | 188 | | |
| |||
436 | 433 | | |
437 | 434 | | |
438 | 435 | | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
447 | 443 | | |
448 | 444 | | |
449 | 445 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1552 | 1552 | | |
1553 | 1553 | | |
1554 | 1554 | | |
1555 | | - | |
1556 | | - | |
1557 | | - | |
| 1555 | + | |
1558 | 1556 | | |
1559 | 1557 | | |
1560 | 1558 | | |
| |||
2762 | 2760 | | |
2763 | 2761 | | |
2764 | 2762 | | |
2765 | | - | |
2766 | | - | |
2767 | | - | |
| 2763 | + | |
2768 | 2764 | | |
2769 | 2765 | | |
2770 | 2766 | | |
| |||
2832 | 2828 | | |
2833 | 2829 | | |
2834 | 2830 | | |
2835 | | - | |
2836 | | - | |
2837 | | - | |
| 2831 | + | |
2838 | 2832 | | |
2839 | 2833 | | |
2840 | 2834 | | |
| |||
0 commit comments