Skip to content

Releases: tirithen/clipper2

v0.5.3

17 Jun 00:28
6c8f60f

Choose a tag to compare

0.5.3 (2025-06-17)

Features

  • point: Round Point integerization to be a bit more natural (b046cad)

Bug Fixes

  • paths: memory leak in signed_area (a4bfd3a)
  • use c++ memory allocator to match delete calls (3de1cc7)

v0.5.2

19 Mar 22:45
9b41b02

Choose a tag to compare

0.5.2 (2025-03-19)

Features

  • path: add path.append(other_path) (d17cf53)
  • path: add path.closest_point(point) method (cc06ddf)
  • path: add path.shift_start_to(point) method (04e29bd)
  • path: add path.surrounds_path(path) method (736f50c)
  • paths: add paths.append(other_paths) (5b8b842)
  • point: add point.distance_to(other_point) (0ba5baf)

Bug Fixes

  • point: fix distance_to measurement (0332d01)

v0.5.1

29 Jan 00:51
b78613e

Choose a tag to compare

0.5.1 (2025-01-29)

Features

  • impl Default for points and paths (cc77f7b)

v0.5.0

23 Jan 11:58
ea07713

Choose a tag to compare

0.5.0 (2025-01-21)

⚠ BREAKING CHANGES

  • Path: Path<P>::inflate now returns Paths<P> instead of
    Path<P>. The method will no longer panic when 0 points remain after
    inflating with a negative number, instead a Paths<P> struct with length
    0 will be returned in those cases.

Features

  • Path: Path<P>::inflate return Paths<P> (cbb999b)

v0.4.1

30 Jul 09:01
8e4c86f

Choose a tag to compare

0.4.1 (2024-07-30)

Features

  • add .push for Path and Paths (3764676)

Bug Fixes

  • add bug fixes from Clipper2 C++ library (58d2653)

v0.4.0

04 Jun 20:32
a0677f5

Choose a tag to compare

0.4.0 (2024-06-04)

⚠ BREAKING CHANGES

  • Use .translate instead of .offset for Paths and Path
    structs.
  • Removes the custom iterators PathIterator and
    PathsIterator, instead rely on the standard iterator types from vec and
    slice.

Features

  • improve the iterator impls for Paths and Path (0c93f5d)
  • remove depr. .offset method from Paths/Path (4ee9fd4)

v0.3.0

01 Jun 14:18
4366907

Choose a tag to compare

0.3.0 (2024-06-01)

⚠ BREAKING CHANGES

  • scale now takes two arguments, allowing separate x and
    y scaling factors

Features

  • implement IntoIterator for Path/Paths (846602c)
  • Path: add .rectangle method (a1dbb5c)
  • serde: ser./deser. Path and Paths (b9800b7)
  • support calculating signed path areas (b1c6386)
  • support scaling around a point (ba6dec3)

v0.2.3

13 May 20:36

Choose a tag to compare

0.2.3 (2024-05-13)

Features

  • expose clipper builder, add path methods (0702f67)

v0.2.2

07 May 22:10

Choose a tag to compare

0.2.2 (2024-05-07)

Features

  • path: add .flip_x and .flip_y to path structs (6323292)
  • path: add .rotate(rad) method to Path/Paths (150715a)
  • path: add .scale(scale) method to Path/Paths (447ed8d)
  • path: rename .offset(x,y) to .translate(x,y) (06bcfb3)

Bug Fixes

  • path: keep path bounds centered during flip (d87993e)

v0.2.1

03 May 13:08

Choose a tag to compare

0.2.1 (2024-05-03)

Features

  • add .offset(x, y) method to Path and Paths (be676f5)
  • add bounds struct to path/paths (3d541f8)
  • add bounds struct to path/paths (b17ccfd)
  • Paths: add from Vec<Path

    > for Paths (39ea7a1)

  • simplify: add simplify function (418b98f)