kcl-std → functions → hole::drill

hole::drillFunction in std::hole

WARNING: This function is experimental and may change or be removed.

End the hole in an angle, like the end of a drill.

hole::drill(pointAngle: number(Angle))

Arguments

NameTypeDescriptionRequired
pointAnglenumber(Angle)A number.Yes

Examples

// `hole` module is still experimental, so enable experimental features here.
@settings(experimentalFeatures = allow)

// Sketch a cube, so we have something to drill into.
cubeLen = 20
bigCube = startSketchOn(XY)
  |> startProfile(at = [-cubeLen / 2, -cubeLen / 2 + 10])
  |> line(end = [cubeLen, 0], tag = $a)
  |> line(end = [0, cubeLen], tag = $b)
  |> line(end = [-cubeLen, 0], tag = $c)
  |> line(end = [0, -cubeLen], tag = $d)
  |> close()
  |> extrude(length = cubeLen, symmetric = true)

// Add a hole with a very pointy drilled bottom.
bigCube
  |> hole::hole(
       face = a,
       cutAt = [0, 0],
       holeBottom = hole::drill(pointAngle = 25deg),
       holeBody = hole::blind(depth = 2, diameter = 8),
       holeType = hole::simple(),
     )

Found a typo?