| 515 | } |
| 516 | |
| 517 | int UnitTestLine(int, char*[]) |
| 518 | { |
| 519 | vtkMinimalStandardRandomSequence* sequence = vtkMinimalStandardRandomSequence::New(); |
| 520 | |
| 521 | sequence->SetSeed(1); |
| 522 | |
| 523 | constexpr unsigned nTest = 1.e4; |
| 524 | |
| 525 | std::cout << "Testing vtkLine::vtkLine::Intersection" << std::endl; |
| 526 | if (TestLineIntersection(sequence, nTest) == EXIT_FAILURE) |
| 527 | { |
| 528 | return EXIT_FAILURE; |
| 529 | } |
| 530 | std::cout << "Testing vtkLine::DistanceBetweenLines" << std::endl; |
| 531 | if (TestDistanceBetweenLines(sequence, nTest) == EXIT_FAILURE) |
| 532 | { |
| 533 | return EXIT_FAILURE; |
| 534 | } |
| 535 | std::cout << "Testing vtkLine::DistanceBetweenLineSegments" << std::endl; |
| 536 | if (TestDistanceBetweenLineSegments(sequence, nTest) == EXIT_FAILURE) |
| 537 | { |
| 538 | return EXIT_FAILURE; |
| 539 | } |
| 540 | std::cout << "Testing vtkLine::DistanceToLine" << std::endl; |
| 541 | if (TestDistanceToLine(sequence, nTest) == EXIT_FAILURE) |
| 542 | { |
| 543 | return EXIT_FAILURE; |
| 544 | } |
| 545 | |
| 546 | sequence->Delete(); |
| 547 | return EXIT_SUCCESS; |
| 548 | } |
nothing calls this directly
no test coverage detected