pyboxbuilder.box.features.build_magnet_detent

pyboxbuilder.box.features.build_magnet_detent(diameter: float, depth: float, clearance: float = 0.1) → tuple[Bosl2Solid, Bosl2Solid][source]

Return negative cylindrical magnet cavities for lid and body (FR-099).

Both returns are negative cavities to be subtracted from lid and body, sized to accept press-fit or glued-in neodymium disc magnets.

Returns:

(lid_pocket, body_pocket)

Return type:

tuple[Bosl2Solid, Bosl2Solid]