mirror of
https://github.com/PhasicFlow/phasicFlow.git
synced 2025-07-18 03:17:04 +00:00
add scale factor in GeometryDict
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user