Point": "p1", "firstSide": "A", "secondPoint": "p5", "secondSide": "A", "weight": 10.1},
    { "id": "seg12", "firstPoint": "p1", "firstSide": "A", "secondPoint": "p5", "secondSide": "B", "weight": 10.1},
    { "id": "seg21", "firstPoint": "p2", "firstSide": "B", "secondPoint": "p3", "secondSide": "B", "weight": 15},
    { "id": "otherSeg1", "firstPoint": "other1", "firstSide": "A", "secondPoint": "other2", "secondSide": "B", "weight": 115}
  ]
  </textarea>
  <p>
    Start point: <input id="simpleStart" va