add code for generating ref model from pcd file