Repository navigation
Published on crates.io: clipper2-rust 1.2.0
[dependencies]
clipper2-rust = "1.2"Added
using_zfeature (optional, off by default) mirroring the C++USINGZbuild: azfield onPoint<T>,Point::new_z,make_path_z/make_path_zd, andset_z_callbackonClipper64,ClipperD, andClipperOffset. Z values are preserved through clipping and offsetting. Thanks to the contributors of #8.clipper2-rust = { version = "1.2", features = ["using_z"] }
ellipse_rect64andellipse_rect_d: generate an ellipse inscribed in a rectangle (port of the C++Ellipse(const Rect<T>&)overload).From<&Point64> for PointDandFrom<&PointD> for Point64(rounding) conversions.- New
using_zexample:cargo run --example using_z --features using_z
Fixed
- Zero-width spurs in union output (#9):
clean_collineardid not restart its walk after removing a vertex, as C++CleanCollineardoes, so spikes could survive whenpreserve_collinearwas on (the default). Output now matches C++. Thanks to @3dodev for the report and repro.
Compatibility
No breaking changes for default builds. Point's PartialEq is now a manual impl (equality ignores z, as in C++); comparison behavior is unchanged without using_z.
Tests: 457 passing (477 with using_z).