Sounds like to create an element with the existing nodes if look ta the body of the function. The  names  look OK when they are in MeshLib::Element* copyElement(..) .