MCPcopy
hub / github.com/zju3dv/4K4D / save

Method save

easyvolcap/utils/tsdf_utils.py:161–170  ·  view source on GitHub ↗

Saves a mesh to disk.

(self, savepath, filename, save_mesh=True)

Source from the content-addressed store, hash-verified

159 return mesh
160
161 def save(self, savepath, filename, save_mesh=True):
162 """ Saves a mesh to disk. """
163 self.cpu()
164 os.makedirs(savepath, exist_ok=True)
165
166 if save_mesh:
167 mesh = self.to_mesh()
168 trimesh.exchange.export.export_mesh(
169 mesh, os.path.join(savepath,
170 filename).replace(".bin", ".ply"), "ply")
171
172
173class TSDFFuser:

Callers 15

save_modelFunction · 0.80
save_maskFunction · 0.80
write_depth_imgFunction · 0.80
bimodal_depth_regressionFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
write_to_excelFunction · 0.80
prepare_annots.pyFile · 0.80

Calls 4

cpuMethod · 0.95
to_meshMethod · 0.95
export_meshMethod · 0.45
replaceMethod · 0.45

Tested by 1

test_illegal_memory_diagFunction · 0.64