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

Function _shape

cadquery/occ_impl/shapes.py:5366–5371  ·  view source on GitHub ↗

Cast a TopoDS_Shape to a Shape of the specfied type.

(s: TopoDS_Shape, _: type[T])

Source from the content-addressed store, hash-verified

5364
5365
5366def _shape(s: TopoDS_Shape, _: type[T]) -> T:
5367 """
5368 Cast a TopoDS_Shape to a Shape of the specfied type.
5369 """
5370
5371 return tcast(T, Shape.cast(s))
5372
5373
5374def _shape_to_faces_shells(

Callers 15

edgeOnFunction · 0.85
wireFunction · 0.85
solidFunction · 0.85
vertexFunction · 0.85
segmentFunction · 0.85
polylineFunction · 0.85
polygonFunction · 0.85
splineFunction · 0.85
circleFunction · 0.85
ellipseFunction · 0.85
planeFunction · 0.85
boxFunction · 0.85

Calls 1

castMethod · 0.80

Tested by

no test coverage detected