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

Class Shell

cadquery/occ_impl/shapes.py:3944–3965  ·  view source on GitHub ↗

the outer boundary of a surface

Source from the content-addressed store, hash-verified

3942
3943
3944class Shell(Shape):
3945 """
3946 the outer boundary of a surface
3947 """
3948
3949 wrapped: TopoDS_Shell
3950
3951 @classmethod
3952 def makeShell(cls, listOfFaces: Iterable[Face]) -> Shell:
3953 """
3954 Makes a shell from faces.
3955 """
3956
3957 shell_builder = BRepBuilderAPI_Sewing()
3958
3959 for face in listOfFaces:
3960 shell_builder.Add(face.wrapped)
3961
3962 shell_builder.Perform()
3963 s = shell_builder.SewedShape()
3964
3965 return cls(s)
3966
3967
3968TS = TypeVar("TS", bound=ShapeProtocol)

Callers 2

ShellsMethod · 0.85
outerShellMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected