Commit Graph

11 Commits

Author SHA1 Message Date
4d0af82aab Add configurable GLB node naming 2026-04-24 09:47:27 +08:00
70ccc02cc4 chore: ignore local worktrees 2026-04-14 11:40:20 +08:00
78f020990e docs: add desktop gui implementation plan 2026-04-14 11:38:53 +08:00
ef4bde9595 docs: add desktop gui design spec 2026-04-14 11:36:50 +08:00
939a56ae03 支持批处理目录 2026-03-12 08:51:46 +08:00
20ce7caaa8 fix: enable Windows 7 compatibility for static build 2025-11-07 09:59:30 +08:00
003b9306e7 feat: add optional gltfpack compression 2025-10-22 16:38:52 +08:00
b454f18a02 fix: preserve root translation in GLB output
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
2025-10-22 15:33:38 +08:00
8218502ee8 chore: import existing STP2GLB project
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
2025-10-22 14:36:07 +08:00
096812b7d2 feat: add HTTP/HTTPS URL input support for STP files
Add capability to download STP files directly from HTTP/HTTPS URLs in both CLI and HTTP server modes.

Changes:
- Add http_downloader module for downloading files from URLs
- Extend GlobalConfig to track downloaded files
- Update CLI parameter processing to detect and handle URLs
- Enhance HTTP server to accept URL parameter alongside file upload
- Implement automatic cleanup of downloaded temporary files
- Add comprehensive usage documentation (USAGE.md)

Usage examples:
  CLI: STP2GLB.exe --stp https://example.com/model.stp --glb output.glb
  API: curl -X POST http://localhost:8080/convert -F "url=https://example.com/model.stp"

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-11 17:19:35 +08:00
bc9165803b feat: 添加 HTTP 服务器模式和低精度默认配置
新增功能:
- 添加 HTTP 服务器模式,支持通过 API 转换 STEP 文件
- 实现文件上传和转换接口 POST /convert
- 添加健康检查接口 GET /health
- 支持服务器端输出目录配置 (默认 ./output)
- 调整默认精度为 Low 级别以提升转换速度

技术实现:
- 集成 cpp-httplib 作为 HTTP 服务器
- 扩展 ServerConfig 配置结构
- 实现临时文件自动清理机制
- 返回 JSON 格式响应,包含输出文件路径

使用方式:
- CLI 模式: STP2GLB.exe --stp input.stp --glb output.glb
- 服务器模式: STP2GLB.exe --server --port 8080

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-11 17:04:47 +08:00