How to make vertex colored squares show black borders

thanks for your reply.
It will help when it is a polygon, but most application scenarios i used are cubes or blocks. All of the edges are used by two polygon, vtkFeatureEdges can not find out the true boundary.