Returns true if the object is a solid, false otherwise
(obj: Shape)
| 4170 | |
| 4171 | @staticmethod |
| 4172 | def isSolid(obj: Shape) -> bool: |
| 4173 | """ |
| 4174 | Returns true if the object is a solid, false otherwise |
| 4175 | """ |
| 4176 | if hasattr(obj, "ShapeType"): |
| 4177 | if obj.ShapeType() == "Solid" or ( |
| 4178 | obj.ShapeType() == "Compound" and len(obj.Solids()) > 0 |
| 4179 | ): |
| 4180 | return True |
| 4181 | return False |
| 4182 | |
| 4183 | @classmethod |
| 4184 | def makeSolid(cls, shell: Shell) -> Solid: |