Try to fix shape if not valid
(self: T)
| 448 | return self.__class__(upgrader.Shape()) |
| 449 | |
| 450 | def fix(self: T) -> T: |
| 451 | """Try to fix shape if not valid""" |
| 452 | if not self.isValid(): |
| 453 | fixed = fix(self.wrapped) |
| 454 | |
| 455 | return self.__class__(fixed) |
| 456 | |
| 457 | return self |
| 458 | |
| 459 | @classmethod |
| 460 | def cast(cls, obj: TopoDS_Shape, forConstruction: bool = False) -> Shape: |