[split] fix splitting disjoint polys not touched by the splitting plane
This commit is contained in:
parent
4f1920c2bb
commit
2cbf4652e2
1 changed files with 6 additions and 0 deletions
|
|
@ -303,6 +303,9 @@ def test_split_noop_returns_independent_poly() -> None:
|
|||
|
||||
|
||||
<<<<<<< HEAD
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
>>>>>>> 3c17160 ([split] fix splitting disjoint polys not touched by the splitting plane)
|
||||
def test_split_handles_disconnected_components_without_cut_edges() -> None:
|
||||
poly_left = adze.build_box([[0.0, 0.0, 0.0], [1.0, 1.0, 1.0]])
|
||||
poly_right = adze.build_box([[3.0, 0.0, 0.0], [4.0, 1.0, 1.0]])
|
||||
|
|
@ -319,8 +322,11 @@ def test_split_handles_disconnected_components_without_cut_edges() -> None:
|
|||
assert_allclose(adze.get_volume(split_right), 1.0)
|
||||
|
||||
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
>>>>>>> 549a417 (more input validation)
|
||||
=======
|
||||
>>>>>>> 3c17160 ([split] fix splitting disjoint polys not touched by the splitting plane)
|
||||
@pytest.mark.parametrize('box_fun', [adze.build_box, adze.planes_from_box])
|
||||
def test_box_helpers_reject_inverted_corners(box_fun) -> None:
|
||||
with pytest.raises(adze.AdzeError, match='box_corners\\[0\\] < box_corners\\[1\\]'):
|
||||
|
|
|
|||
Loading…
Reference in a new issue