MCPcopy
hub / github.com/CadQuery/cadquery / fix

Method fix

cadquery/occ_impl/shapes.py:450–457  ·  view source on GitHub ↗

Try to fix shape if not valid

(self: T)

Source from the content-addressed store, hash-verified

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:

Callers 6

makeNSidedSurfaceMethod · 0.80
chamfer2DMethod · 0.80
trimMethod · 0.80
addHoleMethod · 0.80
hollowMethod · 0.80
hollowFunction · 0.80

Calls 2

isValidMethod · 0.95
fixFunction · 0.85

Tested by

no test coverage detected