Skip to content

Dragging hexagons is unstable #244

Description

@jamwaffles

Please see video:

Screen.sharing.-.2026-04-09.1_08_41.PM.mp4

I drew a hexagon which is completely constrained aside from its vertical position. Dragging any of the vertices causes the hexagon to snap into a different shape. I'd expect dragging an otherwise constrained shape to not change the shape. This hexagon is sourced from this KCL:

sketch001 = sketch(on = XY) {
  line1 = line(start = [var 0mm, var 7.16mm], end = [var 7.25mm, var 2.97mm])
  horizontalDistance([line1.start, ORIGIN]) == 0mm
  line2 = line(start = [var 7.25mm, var 2.97mm], end = [var 7.25mm, var -5.4mm])
  coincident([line1.end, line2.start])
  line3 = line(start = [var 7.25mm, var -5.4mm], end = [var 0mm, var -9.59mm])
  coincident([line2.end, line3.start])
  horizontalDistance([line3.end, ORIGIN]) == 0mm
  line4 = line(start = [var 0mm, var -9.59mm], end = [var -7.25mm, var -5.4mm])
  coincident([line4.start, line3.end])
  line5 = line(start = [var -7.25mm, var -5.4mm], end = [var -7.25mm, var 2.97mm])
  coincident([line4.end, line5.start])
  line6 = line(start = [var -7.25mm, var 2.97mm], end = [var 0mm, var 7.16mm])
  coincident([line5.end, line6.start])
  coincident([line6.end, line1.start])
  equalLength([
    line1,
    line2,
    line3,
    line4,
    line5,
    line6
  ])
  vertical(line2)
  vertical(line5)
  angle([line2, line1]) == 60
  verticalDistance([line3.start, line5.start]) == 0mm
  distance([line6.start, line2.start]) == 14.5
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions