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

Function shapetype

cadquery/occ_impl/shapes.py:396–401  ·  view source on GitHub ↗
(obj: TopoDS_Shape)

Source from the content-addressed store, hash-verified

394
395
396def shapetype(obj: TopoDS_Shape) -> TopAbs_ShapeEnum:
397
398 if obj.IsNull():
399 raise ValueError("Null TopoDS_Shape object")
400
401 return obj.ShapeType()
402
403
404def downcast(obj: TopoDS_Shape) -> TopoDS_Shape:

Callers 11

downcastFunction · 0.85
castMethod · 0.85
geomTypeMethod · 0.85
matrixOfInertiaMethod · 0.85
_mass_calc_functionMethod · 0.85
ShapeTypeMethod · 0.85
ancestorsMethod · 0.85
siblingsMethod · 0.85
ancestorsMethod · 0.85
siblingsMethod · 0.85
isSubshapeFunction · 0.85

Calls 1

ShapeTypeMethod · 0.45

Tested by

no test coverage detected