From 5f6400c0325f1498d0c9a763146c757c1e9cd180 Mon Sep 17 00:00:00 2001 From: wanqing0421 Date: Sat, 26 Apr 2025 00:43:56 +0800 Subject: [PATCH] add scale and transform function during the stl model importing process --- .../geometryPhasicFlow/stlWall/stlWall.cpp | 36 +++++++++++++++++-- 1 file changed, 33 insertions(+), 3 deletions(-) diff --git a/utilities/Utilities/geometryPhasicFlow/stlWall/stlWall.cpp b/utilities/Utilities/geometryPhasicFlow/stlWall/stlWall.cpp index cc561f3f..2c0cc550 100755 --- a/utilities/Utilities/geometryPhasicFlow/stlWall/stlWall.cpp +++ b/utilities/Utilities/geometryPhasicFlow/stlWall/stlWall.cpp @@ -31,6 +31,11 @@ bool pFlow::stlWall::readSTLWall { auto fileName = dict.getVal("file"); + real scale = dict.getValOrSet("scale", static_cast(1.0)); + + realx3 transform = dict.getValOrSet("transform", realx3(0)); + + auto scaleFirst = dict.getValOrSet("scaleFirst", Logical("Yes")); fileSystem file("./stl",fileName); @@ -42,12 +47,37 @@ bool pFlow::stlWall::readSTLWall return false; } - for(uint64 i=0; i