|
|
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 |
|