- Instead of ```(*nodes[k])[0], (*nodes[k])[1], (*nodes[k])[2]``` it should be possible to use ```nodes[k]->getCoords()``` which is little bit shorter.
- Wrong indentation?