Add base.h and base.cpp, add edge2pts method to Base module.