triangleHeight = 200
plumbusLen = 100
radius = 80
circ = {
  angleStart = 0,
  angleEnd = 360,
  radius = radius
}

triangleLen = 500
p = startSketchOn('XY')
  |> startProfileAt([0, 0], %)
  |> angledLine({ angle = 60, length = triangleLen }, %, $a)
  |> angledLine({ angle = 180, length = triangleLen }, %, $b)
  |> angledLine({ angle = 300, length = triangleLen }, %, $c)
  |> extrude(length = triangleHeight)

fn circl(x, face) {
  return startSketchOn(p, face)
    |> startProfileAt([x + radius, triangleHeight / 2], %)
    |> arc(circ, %, $arc_tag)
    |> close(%)
}

c1 = circl(-200, c)
plumbus1 = c1
  |> extrude(length = plumbusLen)
  |> fillet({
       radius = 5,
       tags = [
         c1.tags.arc_tag,
         getOppositeEdge(c1.tags.arc_tag)
       ]
     }, %)
c2 = circl(200, a)
plumbus0 = c2
  |> extrude(length = plumbusLen)
  |> fillet({
       radius = 5,
       tags = [
         c2.tags.arc_tag,
         getOppositeEdge(c2.tags.arc_tag)
       ]
     }, %)
