Fixed unit tests to support multiple base models.

This commit is contained in:
Markus Lampert
2018-08-29 21:46:03 -07:00
committed by wmayer
parent 5d026b6fb6
commit 256d42e2de
6 changed files with 34 additions and 16 deletions

View File

@@ -130,6 +130,12 @@ def isDrillable(obj, candidate, tooldiameter=None, includePartials=False):
tooldiameter=float
"""
PathLog.track('obj: {} candidate: {} tooldiameter {}'.format(obj, candidate, tooldiameter))
if list == type(obj):
for shape in obj:
if isDrillable(shape, candidate, tooldiameter, includePartials):
return (True, shape)
return (False, None)
drillable = False
try:
if candidate.ShapeType == 'Face':