--- jupyter: description: 'Solids from planex2d geometry: Pad and Pocket extrude faces and sketches into OpenCASCADE solids and cut them out, up to a length, a plane or a face, with the names of the profile on the faces of the solid.' --- # 3D
Pad and Pocket
Example Prince Rupert's cube: a cube through a cube
Example Vaults and Steinmetz solids
In this section
## Everything at a glance | | | |---|---| | **Pad** | `px.Pad(profile, length, length2=0)`, or `until=` a plane, a face, or a planex2d face, shape or sketch | | **Pocket** | `px.Pocket(target, profile, length)`, or `until=` as for Pad, and `px.first` or `px.last`, the first or last flat face of the target along the direction | | **Direction** | The plane's normal by default, for a pocket its negative; `dir=` any direction that leaves the plane, `reverse=True` the other way | | **Sketches on solids** | `px.Sketch(face)`, `px.QuickSketch(face)` and `px.Plane(face)` on a flat face of a solid | See [Placing a sketch](../sketch/placement.md) for sketches on the faces of solids, and [OpenCASCADE](../../integrations/occ/index.md) for lofts, projections and sections of solids.