the outer boundary of a surface
| 3942 | |
| 3943 | |
| 3944 | class 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 | |
| 3968 | TS = TypeVar("TS", bound=ShapeProtocol) |
no outgoing calls
no test coverage detected