| 654 | } |
| 655 | |
| 656 | vtkSmartPointer<vtkBiQuadraticQuad> MakeBiQuadraticQuad( |
| 657 | vtkMinimalStandardRandomSequence* randomSequence) |
| 658 | { |
| 659 | auto aQuad = vtkSmartPointer<vtkBiQuadraticQuad>::New(); |
| 660 | |
| 661 | double* pcoords = aQuad->GetParametricCoords(); |
| 662 | for (int i = 0; i < aQuad->GetNumberOfPoints(); ++i) |
| 663 | { |
| 664 | aQuad->GetPointIds()->SetId(i, i); |
| 665 | aQuad->GetPoints()->SetPoint(i, *(pcoords + 3 * i) + randomSequence->GetNextRangeValue(-.1, .1), |
| 666 | *(pcoords + 3 * i + 1) + randomSequence->GetNextRangeValue(-.1, .1), *(pcoords + 3 * i + 2)); |
| 667 | } |
| 668 | |
| 669 | return aQuad; |
| 670 | } |
| 671 | |
| 672 | vtkSmartPointer<vtkCubicLine> MakeCubicLine() |
| 673 | { |
no test coverage detected