Commit 1b61a46e authored by laurence's avatar laurence
Browse files

ENH: snappyHexMesh: update outfile location for surfaceSimplify

parent aa6f0170
......@@ -137,8 +137,11 @@ autoPtr<refinementSurfaces> createRefinementSurfaces
const scalar surfaceCellSize =
readScalar(scsDict.lookup("surfaceCellSizeCoeff"));
globalMinLevel[surfI] = label(1.0/surfaceCellSize);
globalMaxLevel[surfI] = label(1.0/surfaceCellSize);
const label calculatedCellLevel =
round(::log(1.0/surfaceCellSize)/::log(2) + 1);
globalMinLevel[surfI] = calculatedCellLevel;
globalMaxLevel[surfI] = calculatedCellLevel;
globalLevelIncr[surfI] = shapeDict.lookupOrDefault
(
"gapLevelIncrement",
......@@ -319,8 +322,14 @@ autoPtr<refinementSurfaces> createRefinementSurfaces
scsDict.lookup("surfaceCellSizeCoeff")
);
globalMinLevel[surfI] = label(1.0/surfaceCellSize);
globalMaxLevel[surfI] = label(1.0/surfaceCellSize);
const label calculatedCellLevel =
round
(
::log(1.0/surfaceCellSize)/::log(2) + 1
);
globalMinLevel[surfI] = calculatedCellLevel;
globalMaxLevel[surfI] = calculatedCellLevel;
globalLevelIncr[surfI] =
shapeControlRegionDict.lookupOrDefault
(
......@@ -1518,12 +1527,14 @@ int main(int argc, char *argv[])
}
}
fileName outFileName("simplifiedSurface.obj");
if (args.optionFound("outFile"))
{
outFileName = word(args.optionLookup("outFile")());
}
fileName outFileName
(
args.optionLookupOrDefault<fileName>
(
"outFile",
"constant/triSurface/simplifiedSurface.stl"
)
);
extractSurface
(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment