Countersink Hole

Edit source code
by Andreas Riedmüller
Use shift + scroll to zoom
mm

Major hole diameter (top)

mm

Diameter of primary hole

mm

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.

mm
mm

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 holeDiameter defining the diameter of the screw hole.
  • A conical countersink at the top, whose majorDiameter defines the widest opening. The depth of 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.

Processing steps (work in progress)
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.
Not saved yet — Discarded when you close this tab

Save as part

A part is this shape with your configuration saved under its own name. Save it to your account to come back to it later, or submit it for review to have it published on stl.parts.

Markdown is supported. The description is published together with the part when the part is published.