16 Star 89 Fork 17

Jeffrey-Wang / 3d-model-convert-to-gltf

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
convert.sh 552 Bytes
一键复制 编辑 原始数据 按行查看 历史
# convert.sh [stl|stp|iges|obj|fbx] inputpath.stl outputpath.gltf no-draco
# convert.sh [stl|stp|iges|obj|fbx] inputpath.stl outputpath.glb no-draco
# no-draco is option
inputPath=$(
cd "$(dirname "$2")"
pwd
)
inputFile=$inputPath/`basename $2`
outPath=$(
cd "$(dirname "$3")"
pwd
)
outFile=$outPath/`basename $3`
docker run -v $inputPath:$inputPath -v $outPath:$outPath wj2015/3d-model-convert-to-gltf:v1.6 /bin/bash -c "cd $inputPath && conda run -n pythonocc python /opt/3d-model-convert-to-gltf/server/convert.py $1 $inputFile $outFile $4"
1
https://gitee.com/wangerzi/model-convert-to-gltf.git
git@gitee.com:wangerzi/model-convert-to-gltf.git
wangerzi
model-convert-to-gltf
3d-model-convert-to-gltf
master

搜索帮助