| 581 | } |
| 582 | |
| 583 | void vtkHigherOrderWedge::SetParametricCoords() |
| 584 | { |
| 585 | const int* order = this->GetOrder(); |
| 586 | #ifdef VTK_21_POINT_WEDGE |
| 587 | if (order[3] == 21) |
| 588 | { |
| 589 | return; |
| 590 | } |
| 591 | #endif |
| 592 | if (!this->PointParametricCoordinates) |
| 593 | { |
| 594 | this->PointParametricCoordinates = vtkSmartPointer<vtkPoints>::New(); |
| 595 | this->PointParametricCoordinates->SetDataTypeToDouble(); |
| 596 | } |
| 597 | |
| 598 | // Ensure Order is up-to-date and check that current point size matches: |
| 599 | if (static_cast<int>(this->PointParametricCoordinates->GetNumberOfPoints()) != order[3]) |
| 600 | { |
| 601 | this->PointParametricCoordinates->Initialize(); |
| 602 | vtkHigherOrderInterpolation::AppendWedgeCollocationPoints( |
| 603 | this->PointParametricCoordinates, this->Order); |
| 604 | } |
| 605 | } |
| 606 | |
| 607 | double* vtkHigherOrderWedge::GetParametricCoords() |
| 608 | { |
no test coverage detected