------------------------------------------------------------------------------ Build the turbine blades ------------------------------------------------------------------------------
| 1178 | // Build the turbine blades |
| 1179 | //------------------------------------------------------------------------------ |
| 1180 | void vtkWindBladeReader::LoadBladeData(int timeStep) |
| 1181 | { |
| 1182 | this->BPoints->Delete(); |
| 1183 | this->BPoints = vtkPoints::New(); |
| 1184 | |
| 1185 | // Open the file for this time step |
| 1186 | std::ostringstream fileName; |
| 1187 | fileName << this->RootDirectory << "/" << this->TurbineDirectory << "/" << this->TurbineBladeName |
| 1188 | << this->TimeSteps[timeStep]; |
| 1189 | |
| 1190 | vtksys::ifstream inStr(fileName.str().c_str()); |
| 1191 | std::stringstream inStrSS; |
| 1192 | std::copy(std::istreambuf_iterator<char>(inStr), std::istreambuf_iterator<char>(), |
| 1193 | std::ostreambuf_iterator<char>(inStrSS)); |
| 1194 | this->ReadBladeData(inStrSS); |
| 1195 | } |
| 1196 | |
| 1197 | //------------------------------------------------------------------------------ |
| 1198 | void vtkWindBladeReader::InitFieldData( |
no test coverage detected