Repository navigation
Conversation
Same algorithm as the Python 3.2.2 engine (corridor mask, local bearing, segments mode with fold-back, min_length, drop mode, carried mask), with the behaviour tests ported and a comparison harness on the Maze map. Co-authored-by: Cursor <[email protected]>
The package now builds with maturin; deoverlap._core wraps the Rust crate through PyO3 (abi3, Python >= 3.10). deoverlap() picks the Rust engine when the extension is present and falls back to the Python engine otherwise; engine= or DEOVERLAP_ENGINE forces one. The test suite runs against both engines. Co-authored-by: Cursor <[email protected]>
Co-authored-by: Cursor <[email protected]>
The Python package is now a thin Shapely wrapper around deoverlap._core. Removed the engine switch and the options that only tuned the Python engine (progress_bar, tree_rebuild_every, mask_union_every, track_origins), the vpype --progress flag and the tqdm dependency. The core reports the order geometries were kept in. Figures regenerated with the Rust engine. Co-authored-by: Cursor <[email protected]>
… Rust core deoverlap_with_progress() reports (done, total); the Python binding forwards it to an optional callback about a hundred times per run, and deoverlap(progress_bar=True) shows it as a tqdm bar again. Co-authored-by: Cursor <[email protected]>
- --prefer longest|first|shortest replaces --keep - --angle replaces --parallel-only/--parallel-angle; 90 cuts crossings - --drop FRACTION replaces --mode/--drop-fraction - --self-overlap replaces --segments; --segment-adjacency is gone and the hairpin threshold no longer depends on the angle - -m/--min-length and -p/--progress-bar, as in vpype filter and deduplicate - Python defaults now match the CLI (prefer longest, angle 30); group, preserve_types, the tuple unpacking and the KeepPolicy/ClipMode enums are gone - Invalid prefer/angle/drop values raise ValueError - README and figures updated Co-authored-by: Cursor <[email protected]>
…d Windows Co-authored-by: Cursor <[email protected]>
…gs kept vs cut Co-authored-by: Cursor <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rust core (geo) with PyO3 bindings, built with maturin as abi3 wheels.
--prefer,--angle,--self-overlap,-m/--min-length,--drop,-k,-p/--progress-bar,-l.Made with Cursor