3D



planex2d is a 2D kernel, but every face and sketch lies on a plane that can be placed anywhere in 3D, and it becomes a solid in OpenCASCADE. px.Pad extrudes a face, a shape or a sketch into a solid, and px.Pocket cuts such an extrusion out of a solid, either by a length or up to a plane or a face. The side faces of the solid carry the names of the profile edges they come from, so they can be selected by name for meshing and boundary conditions.
A flat face of a solid works wherever planex2d takes a plane. A sketch is drawn on it with px.Sketch(face), and a pocket runs up to it with until=face, so the next feature of a part is built on the faces of the last one. Solids need the OpenCASCADE bindings, the optional package planex2d-occ (pip install "planex2d[occ]", which brings netgen).
In this section
Everything at a glance
Pad |
|
|
|
Direction |
The plane’s normal by default, for a pocket its negative; |
Sketches on solids |
|
See Placing a sketch for sketches on the faces of solids, and OpenCASCADE for lofts, projections and sections of solids.