34 void starMesh::readPoints(
const scalar scaleFactor)
39 fileName pointsFileName(casePrefix_ +
".vrt");
46 if (pointsFile.good())
52 while ((pointsFile >> pointLabel).good())
55 maxLabel =
max(maxLabel, pointLabel);
56 pointsFile >> x >> y >> z;
62 <<
"Cannot read file " << pointsFileName
69 points_.setSize(nPoints);
70 starPointID_.setSize(nPoints);
75 starPointLabelLookup_.setSize(maxLabel+1);
78 starPointLabelLookup_ = -1;
96 starPointID_[
p] = pointLabel;
97 starPointLabelLookup_[pointLabel] =
p;
100 if (scaleFactor > 1.0 + SMALL || scaleFactor < 1.0 - SMALL)
102 points_ *= scaleFactor;
108 <<
"void starMesh::readPoints() : "
109 <<
"no points in file "