void ImageMesh::buildMesh() { // A list of filenames of length 1 means we are building a 2D mesh if (_filenames.size()==1) buildMesh2D(_filenames[0]); else buildMesh3D(_filenames); }
void ImageMesh::buildMesh() { // Make sure the filenames parameter is valid. This is set up by // the parseFileRange() function, see FileRangeBuilder.{C,h} for // more information. if (!isParamValid("filenames")) mooseError("ImageMesh Error: filenames parameter is not valid!"); // Grab the list of filenames std::vector<std::string> filenames = getParam<std::vector<std::string> >("filenames"); // A list of filenames of length 1 means we are building a 2D mesh if (filenames.size()==1) buildMesh2D(filenames[0]); else buildMesh3D(filenames); }