Rib & Push/Pull
Renders the 3D model in your browser. The first run downloads the Python runtime (≈30 MB).
Rib(points, thickness)fills the area between an open polyline and the straight line joining its ends, and extrudes itthicknesssymmetrically about its sketch plane. Three points make the classic triangular gusset, as between the two plates above. ARibexpands into anExtrusion, so userib.expand()inside aBooleanOperation, or add it straight to the part.OffsetFace(solid, face_finder, distance)pushes or pulls faces along their outward normal: positivedistancegrows the solid, negative cuts into it. Here the upright’s top face is pulled up 10 mm.- Curved faces move too, by their true offset. The green boss’s cylindrical side is pushed out 3 mm, so the Ø16 boss becomes Ø22. The orange frustum’s cone is pulled in 1.5 mm. In both cases the flat faces around the moved face are extended to meet it, so the boss still rises straight from its plate and the cone keeps its flat top and base. Cylinders, cones and spheres are offset exactly. An extruded circle’s side is two half faces, and picking either half moves the whole cylinder.
Direct edit: move and delete faces
Like Onshape’s Move face and Delete face, these edit a solid’s faces directly, whatever features built them.
MoveFace(solid, face_finder, translation=Point3D(…), rotation_angle=0, rotation_axis=Point3D(0, 0, 1), rotation_origin=Point3D(0, 0, 0))moves planar faces to a new plane. The rotation is applied first, then the translation. The faces around the moved one extend or shrink to meet it: lengthen or shorten a block, raise a boss, make a pocket deeper, tilt an end face. Only the face’s new plane matters, so sliding a face within its own plane changes nothing.DeleteFace(solid, face_finder)deletes the faces of a feature and heals the solid. Pick a hole’s wall (plus its floor if it is blind), a pocket’s or slot’s walls and floor, or a boss’s wall and top: the hole or pocket is filled, the boss is removed. Picking either half of an extruded circle’s side deletes the whole cylinder.
Renders the 3D model in your browser. The first run downloads the Python runtime (≈30 MB).
From left to right: the block’s end face is moved out 12 mm, the top face is tilted 15°, and the hole’s wall is deleted, so the hole is filled.
How it works, and its limits
The OpenCascade defeaturing algorithm (BRepAlgoAPI_Defeaturing) is not in
this build, so both are rebuilt with booleans:
- MoveFace adds the face’s own prism, clipped by the new plane, and
removes the slab beyond the new plane. This is only correct when the
neighbouring faces run along the face’s normal, as in a prismatic region:
side walls, or a cylinder parallel to the normal. These cases are
processing errors:
- a curved face (use
OffsetFaceinstead); - drafted or sloped neighbours;
- a tilt of more than 60°;
- a face moved inward through another face.
- a curved face (use
- DeleteFace closes the picked faces with flat caps over the loops where they meet the rest of the solid. It fills the result if it lies outside the solid and cuts it away if it lies inside. Those loops must be planar, so deleting a fillet or chamfer face is a processing error.
- ReplaceFace (replace a face by another surface) is not available yet.