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

Method makeShell

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

Makes a shell from faces.

(cls, listOfFaces: Iterable[Face])

Source from the content-addressed store, hash-verified

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 1

testMakeShellSolidMethod · 0.80

Calls

no outgoing calls

Tested by 1

testMakeShellSolidMethod · 0.64