Export helper object from FreeCAD: grasp poses, part's zero positions, planar (tables, surfaces) and volumetric zones (storage, boxes)
This commit is contained in:
parent
a38c3bec5a
commit
9fa936cfba
26 changed files with 12259 additions and 2 deletions
17
cg/freecad/Frames/newLabel.py
Normal file
17
cg/freecad/Frames/newLabel.py
Normal file
|
@ -0,0 +1,17 @@
|
|||
import FreeCAD as App
|
||||
|
||||
|
||||
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
|
||||
|
||||
return obj.Shape.isClosed()
|
||||
|
||||
def addProperty():
|
||||
for obj in App.ActiveDocument().Objects:
|
||||
if is_object_solid(obj):
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue