42 refPoint_(vector::zero)
74 refPoint_(point::zero)
76 if (axis_ ==
"x" || axis_ ==
"distance")
78 refPoint_.x() = refPoint;
79 replace(point::X, points);
81 else if (axis_ ==
"y")
85 else if (axis_ ==
"z")
87 replace(point::Z, points);
93 "coordSet::coordSet(const word& name,"
94 "const word& axis, const List<scalar>& points,"
95 "const scalar refPoint)"
96 ) <<
"Illegal axis specification " << axis_
97 <<
" for sampling line " << name_
107 return axis_ ==
"xyz";
116 const point&
p = operator[](index);
122 else if (axis_ ==
"y")
126 else if (axis_ ==
"z")
130 else if (axis_ ==
"distance")
133 return mag(p - refPoint_);
139 "coordSet::scalarCoord(const label)"
140 ) <<
"Illegal axis specification " << axis_
141 <<
" for sampling line " << name_
151 const point&
p = operator[](index);
159 os <<
"name:" << name_ <<
" axis:" << axis_ <<
" reference:" << refPoint_
161 <<
endl <<
"\t(coord)"
166 os <<
'\t' << operator[](sampleI) <<
endl;