Commit Graph

2 Commits

Author SHA1 Message Date
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