Skip to content

Commit

Permalink
add simple test for limit
Browse files Browse the repository at this point in the history
  • Loading branch information
Czaki committed Jan 21, 2025
1 parent 74f20e1 commit a3d021c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/test_triangulate.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,3 +187,13 @@ def test_default_values_keyword_order():
closed=True,
)
assert len(triangles) == 12


def test_change_limit():
centers, offsets, triangles = triangulate_path_edge(
np.array([[0, 0], [0, 10], [10, 10], [10, 0]], dtype='float32'),
bevel=False,
closed=True,
limit=0.5,
)
assert len(triangles) == 12

0 comments on commit a3d021c

Please sign in to comment.