Judge the stability for 3d printing objects, written in c++