You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6a68633
Browse filesBrowse the repository at this point in the historyBrowse files
Readability refactor: kill the error-conversion boilerplate and wrapped chains (#8)
* refactor: let ? convert TriangulationError in the PyO3 layer
Readability only; no behavior change (the full suite, stress sweeps,
and benchmarks are identical).
- impl From<TriangulationError> for PyErr replaces the inherent
into_pyerr method, so the 31 call sites that wrapped every core call
in .map_err(TriangulationError::into_pyerr) now just use ?; most of
the awkward multi-line method chains in the bindings collapse back
to single lines
- given() collapses the repeated three-arm 'absent argument or
explicit Python None' matches to one helper
- the eight SimplicesProxy set operators delegate through a shared
set_op/set_rop pair instead of repeating the snapshot dance
* refactor: shared helpers for the robust-predicate plumbing
Readability only; no behavior change.
- coord_2d/coord_3d replace the robust::Coord construction closures
that were redefined inline in every predicate
- sign() replaces the repeated three-way if/else blocks
- validate_simplex() dedupes the 'dim + 1 points of equal dimension'
check that circumsphere, volume, precise_volume, and
robust_in_circumsphere each spelled out
* refactor: flatten the hard-to-read chains in the core
Readability only; no behavior change.
- TriangulationError::value() collapses the three-line
Err(TriangulationError::Value("...".to_string())) returns
- containing() uses plain loops instead of nested map/filter/collect
chains wrapped across a dozen lines
- facet_neighbour() names the 'other simplex across this facet'
lookup shared by the walk and opposing_vertices
- detach_vertex() dedupes the failed-insertion rollback that
extend_hull and add_point both spelled out
- summed_volume uses a for loop instead of a try_fold with a
turbofish
0 commit comments