Skip to content

Commit dac9345

Browse files
Print the problematic shapes
1 parent 85ff83c commit dac9345

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/test_cadquery.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5411,6 +5411,21 @@ def test_project(self):
54115411
f = Workplane("XZ", origin=(0, 0, -7)).sphere(6).faces("not %PLANE").val()
54125412

54135413
res = t.project(f, (0, 0, -1))
5414+
5415+
from io import BytesIO
5416+
bio = BytesIO()
5417+
5418+
res.exportBrep(bio)
5419+
5420+
bio.seek(0)
5421+
print(bio.read())
5422+
5423+
bio = BytesIO()
5424+
5425+
f.exportBrep(bio)
5426+
5427+
bio.seek(0)
5428+
print(bio.read())
54145429

54155430
assert res.isValid()
54165431
assert len(res.Edges()) == len(t.Edges())

0 commit comments

Comments
 (0)