安装源码包和emcc ```bash npm run setup:wasm ```
npm install cf-occ-wasm
安装源码包和emcc
``bash
`
npm run setup:wasm
`
注意:Debug和Release不要同时编译,否则缓存丢失!
编译
bash
`
npm run build
`
编译debug 编译速度更快
bash
`
npm run build
`
生成sln文件
bash
`
npm run sln
`
异常信息
``
try
{
pipe.Build();
}
catch (Standard_Failure const& e) {
std::cerr << "捕获到异常:" << e.GetMessageString() << std::endl;
}
//移除了BuildHistory函数
\occ\OCCT\src\BRepFill\BRepFill_PipeShell.cxx