use the ransac based algorithm to extract primitives from point cloud.