cad stability

This commit is contained in:
IDONTSUDO 2023-06-30 21:47:53 +03:00
parent f59bb9d801
commit fe714b1123
40 changed files with 1655 additions and 49 deletions

View file

@ -0,0 +1,18 @@
import FreeCAD
def is_object_solid(obj):
"""If obj is solid return True"""
if not isinstance(obj, FreeCAD.DocumentObject):
return False
if not hasattr(obj, 'Shape'):
return False
if not hasattr(obj.Shape, 'Solids'):
return False
if len(obj.Shape.Solids) == 0:
return False
return True