add scale factor in GeometryDict

This commit is contained in:
xuwenxuan
2025-04-22 23:52:59 +08:00
parent 8da8afbe63
commit 888e5eb4cb
3 changed files with 16 additions and 12 deletions

View File

@ -31,11 +31,13 @@ bool pFlow::stlWall::readSTLWall
{
auto fileName = dict.getVal<word>("file");
real scale = dict.getValOrSet("scale", static_cast<real>(1.0));
fileSystem file("./stl",fileName);
stlFile stl(file);
if(!stl.read())
if(!stl.read(scale))
{
fatalErrorInFunction <<
" error in reading stl file "<< file <<endl;