File tree Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Original file line number Diff line number Diff line change
1
+ Surface body unit test fix
Original file line number Diff line number Diff line change @@ -620,6 +620,7 @@ def serialize_body(body):
620
620
},
621
621
"master_id" : body .master_id ,
622
622
"parent_id" : body .parent_id ,
623
+ "is_surface" : body .is_surface ,
623
624
}
624
625
625
626
def serialize_entity_identifier (entity ):
Original file line number Diff line number Diff line change @@ -111,6 +111,7 @@ def serialize_body(body):
111
111
},
112
112
"master_id" : body .master_id ,
113
113
"parent_id" : body .parent_id ,
114
+ "is_surface" : body .is_surface ,
114
115
}
115
116
116
117
def serialize_entity_identifier (entity ):
Original file line number Diff line number Diff line change @@ -403,10 +403,9 @@ def test_find_and_fix_missing_faces(modeler: Modeler):
403
403
for face in missing_faces :
404
404
face .fix ()
405
405
406
- # TODO : Add surface body check from backend. Issue is being tracked in #2031.
407
- # assert not design.bodies[0].is_surface
408
- # for comp in design.components:
409
- # assert not comp.bodies[0].is_surface
406
+ assert not design .bodies [0 ].is_surface
407
+ for comp in design .components :
408
+ assert not comp .bodies [0 ].is_surface
410
409
411
410
412
411
def test_find_and_fix_missing_faces_angle_distance (modeler : Modeler ):
@@ -458,8 +457,7 @@ def test_find_and_stitch_and_missing_faces(modeler: Modeler):
458
457
for i in stitch_faces :
459
458
i .fix ()
460
459
assert len (design .bodies ) == 1
461
- # TODO : Add surface body check from backend. Issue is being tracked in #2031.
462
- # assert design.bodies[0].is_surface
460
+ assert design .bodies [0 ].is_surface
463
461
missing_faces = modeler .repair_tools .find_missing_faces (design .bodies )
464
462
for face in missing_faces :
465
463
face .fix ()
You can’t perform that action at this time.
0 commit comments