Makes a shell from faces.
(cls, listOfFaces: Iterable[Face])
| 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 | |
| 3968 | TS = TypeVar("TS", bound=ShapeProtocol) |
no outgoing calls