Stp2Glb/.serena/memories/suggested_commands.md
sladro 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

1.2 KiB

建议的开发命令

环境设置

# 安装依赖环境
pixi install

# 激活环境
pixi shell

构建命令

动态构建 (开发推荐)

# Windows构建
pixi run build
pixi run install

# 调试构建
pixi run -e dynamic-debug build
pixi run -e dynamic-debug install

静态构建 (发布用)

# 静态构建
pixi run -e static build
pixi run -e static install

测试命令

# 运行测试 (动态构建)
pixi run test

# 运行测试 (调试构建)
pixi run -e dynamic-debug test

# 手动运行CTest
ctest --test-dir build/win-dynamic-release

手动执行

# 基本转换
STP2GLB.exe --stp input.stp --glb output.glb

# 调试模式转换
STP2GLB.exe --stp input.stp --glb output.glb --debug

# 高级选项
STP2GLB.exe --stp input.stp --glb output.glb --lin-defl 0.1 --ang-defl 0.5 --solid-only

Windows特定工具

# 查看文件
dir
type filename.txt

# 搜索文件
findstr "pattern" *.cpp

# 文件操作
copy source.txt dest.txt
move source.txt dest.txt
del filename.txt

构建环境检查

# 检查Visual Studio工具
vswhere -latest -property installationPath

# 检查CMake版本
cmake --version

# 检查Ninja
ninja --version