Update edge.cpp

setGeometry