去掉注释,及修改转换3d模型文件的位置

This commit is contained in:
jinling.yang
2023-11-08 17:41:18 +08:00
parent 6335c03cef
commit 01f0902937
3 changed files with 4 additions and 4 deletions

View File

@@ -863,7 +863,7 @@ class ResProductMo(models.Model):
# write_stl_file(shapes, output_file, 'binary', 0.03, 0.5)
# 转化为glb
output_glb_file = os.path.join('/tmp', str(code) + '.glb')
util_path = get_resource_path('sf_dlm', 'static/util')
util_path = get_resource_path('sf_base', 'static/util')
cmd = 'python3 %s/stl2gltf.py %s %s -b' % (util_path, output_file, output_glb_file)
os.system(cmd)
# 转base64