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

Function fix

cadquery/occ_impl/shapes.py:415–423  ·  view source on GitHub ↗

Fix a TopoDS object to suitable specialized type

(obj: TopoDS_Shape)

Source from the content-addressed store, hash-verified

413
414
415def fix(obj: TopoDS_Shape) -> TopoDS_Shape:
416 """
417 Fix a TopoDS object to suitable specialized type
418 """
419
420 sf = ShapeFix_Shape(obj)
421 sf.Perform()
422
423 return downcast(sf.Shape())
424
425
426class Shape(object):

Callers 1

fixMethod · 0.85

Calls 1

downcastFunction · 0.85

Tested by

no test coverage detected