Commit c232df2
feat: add configurable bounds parameter to newton_csx
newton_csx now accepts optional bounds=(t_lo, t_hi, u_lo, u_hi, v_lo, v_hi)
for clamping parameters to a sub-region instead of [0,1]^3.
Phase 2 continues using unbounded Newton + "converged outside cell → prune"
which is faster: Newton quickly escapes to the nearest intersection,
the result is checked against the cell range, and empty cells are pruned
without wasting iterations at clamped boundaries.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 8e5a58c commit c232df2
1 file changed
Lines changed: 23 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
| 291 | + | |
291 | 292 | | |
292 | 293 | | |
293 | 294 | | |
294 | 295 | | |
295 | 296 | | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
296 | 304 | | |
297 | 305 | | |
298 | 306 | | |
299 | | - | |
| 307 | + | |
300 | 308 | | |
301 | 309 | | |
302 | 310 | | |
303 | | - | |
304 | | - | |
305 | | - | |
| 311 | + | |
306 | 312 | | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
307 | 323 | | |
308 | 324 | | |
309 | 325 | | |
| |||
332 | 348 | | |
333 | 349 | | |
334 | 350 | | |
335 | | - | |
336 | | - | |
337 | | - | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
338 | 354 | | |
339 | 355 | | |
340 | 356 | | |
| |||
0 commit comments