API文档在这里源码在这里之前看到的一个干货满满的Pytorch3D安装指导与简单例子的帖子在这里 官方tutorials中提到的用法在下面这个代码块里面,前面后面东西都挺多的就把和chamfer_distance相关的摘到了这里frompytorch3d.opsimportsample_points_from_meshesfrompytorch3d.lossimport(chamfer_distance,mesh_edge_loss,mesh_laplacian_smoothing,mesh_normal_consistency,)#Wesample5kpointsfromthesurfac