Countersink Hole
Edit source codeMajor hole diameter (top)
Diameter of primary hole
Depth of countersink. By using the formula "=(majorDiameter - holeDiameter) / (2* tan(((60 * PI) / 180) / 2))" you can set the depth by defining an angle, just replace 60 by whatever angle is needed.
The total height
This parametric shape defines a combined countersink and counterdrill hole, designed with precision and adaptability in mind. It features two distinct sections:
- A primary cylindrical hole governed by the
holeDiameterdefining the diameter of the screw hole. - A conical countersink at the top, whose
majorDiameterdefines the widest opening. Thedepthof this flare can be calculated using a customizable formula based on a specified angle.
Optionally, a counterdrillDepth can be set to recess the cylindrical section deeper into the model before the conical flare begins—useful for applications requiring stepped holes.
By using counterdrillDepth with depth set to 0 you can also create a counterBore hole.
The overall structure is vertically bounded by the height parameter, ensuring the feature fits within design constraints. Smoothness and roundness are defined by segments, optimizing it for printing or CNC work.
Applications: Ideal for mechanical enclosures, machine parts, woodworking, or any assembly where fasteners must sit flush or recessed. Also suited for guiding drill bits or providing relief zones in layered material assemblies. Great for 3D-printed jigs, panels, or structural connectors where clean, functional holes are essential.
This is a first version of an idea I had. You can add different modifiers to the generated shape. Currently there is only the drilling machine that can drill a hole in the center (origin) of the shape and rotate.