@@ -5410,28 +5410,7 @@ def test_project(self):
5410
5410
t = Compound .makeText ("T" , 5 , 0 ).Faces ()[0 ]
5411
5411
f = Workplane ("XZ" , origin = (0 , 0 , - 7 )).sphere (6 ).faces ("not %PLANE" ).val ()
5412
5412
5413
- 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
- t .exportBrep (bio )
5425
-
5426
- bio .seek (0 )
5427
- print (bio .read ())
5428
-
5429
- bio = BytesIO ()
5430
-
5431
- f .exportBrep (bio )
5432
-
5433
- bio .seek (0 )
5434
- print (bio .read ())
5413
+ res = t .project (f , (0 , 0 , 1 ))
5435
5414
5436
5415
assert res .isValid ()
5437
5416
assert len (res .Edges ()) == len (t .Edges ())
@@ -5446,12 +5425,12 @@ def test_project(self):
5446
5425
# project a wire
5447
5426
w = t .outerWire ()
5448
5427
5449
- res_w = w .project (f , (0 , 0 , - 1 ))
5428
+ res_w = w .project (f , (0 , 0 , 1 ))
5450
5429
5451
5430
assert len (res_w .Edges ()) == 8
5452
5431
assert res_w .isValid ()
5453
5432
5454
- res_w1 , res_w2 = w .project (f , (0 , 0 , - 1 ), False )
5433
+ res_w1 , res_w2 = w .project (f , (0 , 0 , 1 ), False )
5455
5434
5456
5435
assert len (res_w1 .Edges ()) == 8
5457
5436
assert len (res_w2 .Edges ()) == 8
@@ -5460,7 +5439,7 @@ def test_project(self):
5460
5439
o = Compound .makeText ("O" , 5 , 0 ).Faces ()[0 ]
5461
5440
f = Workplane ("XZ" , origin = (0 , 0 , - 7 )).sphere (6 ).faces ("not %PLANE" ).val ()
5462
5441
5463
- res_o = o .project (f , (0 , 0 , - 1 ))
5442
+ res_o = o .project (f , (0 , 0 , 1 ))
5464
5443
5465
5444
assert res_o .isValid ()
5466
5445
0 commit comments