stl2gltf/cmd/stl2gltf.go

20 lines
775 B
Go
Raw Permalink Normal View History

2024-06-05 01:43:08 +08:00
package main
import (
"git.dengqn.com/dqn/stl2gltf"
)
func main() {
2024-06-06 02:26:04 +08:00
stl := stl2gltf.Load("./example/0c448109-7ac9-4f6d-aaf6-ce6bb744032f.stl")
stl2gltf.Convert(stl, "./example/0c448109-7ac9-4f6d-aaf6-ce6bb744032f.gltf")
2024-06-07 00:50:09 +08:00
stl2gltf.ConvertGLB(stl, "./example/0c448109-7ac9-4f6d-aaf6-ce6bb744032f.glb")
2024-06-05 01:43:08 +08:00
2024-06-06 02:26:04 +08:00
stl = stl2gltf.Load("./example/1ec91891-c25a-4905-a79c-f3bc96045d37.stl")
stl2gltf.Convert(stl, "./example/1ec91891-c25a-4905-a79c-f3bc96045d37.gltf")
2024-06-07 00:50:09 +08:00
stl2gltf.ConvertGLB(stl, "./example/1ec91891-c25a-4905-a79c-f3bc96045d37.glb")
2024-06-06 02:17:06 +08:00
2024-06-06 02:26:04 +08:00
stl = stl2gltf.Load("./example/3ea057e5-1520-4898-a59c-f33a6c955bd7.stl")
stl2gltf.Convert(stl, "./example/3ea057e5-1520-4898-a59c-f33a6c955bd7.gltf")
2024-06-07 00:50:09 +08:00
stl2gltf.ConvertGLB(stl, "./example/3ea057e5-1520-4898-a59c-f33a6c955bd7.glb")
2024-06-05 01:43:08 +08:00
}