| 281 | } |
| 282 | |
| 283 | const int* vtkHigherOrderCurve::GetOrder() |
| 284 | { |
| 285 | vtkIdType npts = this->Points->GetNumberOfPoints(); |
| 286 | if (this->Order[1] != npts) |
| 287 | { |
| 288 | int pointsPerAxis = static_cast<int>(npts); // number of points along each axis |
| 289 | this->Order[0] = pointsPerAxis - 1; // order 1 is linear, 2 is quadratic, ... |
| 290 | this->Order[1] = pointsPerAxis; |
| 291 | this->CellScalars->SetNumberOfTuples(pointsPerAxis); |
| 292 | } |
| 293 | return this->Order; |
| 294 | } |
| 295 | |
| 296 | bool vtkHigherOrderCurve::PointCountSupportsUniformOrder(vtkIdType pointsPerCell) |
| 297 | { |
no test coverage detected