------------------------------------------------------------------------------ Get the edge specified by edgeId (range 0 to 2) and return that edge's coordinates.
| 527 | // Get the edge specified by edgeId (range 0 to 2) and return that edge's |
| 528 | // coordinates. |
| 529 | vtkCell* vtkTriangle::GetEdge(int edgeId) |
| 530 | { |
| 531 | int edgeIdPlus1 = (edgeId > 1 ? 0 : (edgeId + 1)); |
| 532 | |
| 533 | // load point id's |
| 534 | this->Line->PointIds->SetId(0, this->PointIds->GetId(edgeId)); |
| 535 | this->Line->PointIds->SetId(1, this->PointIds->GetId(edgeIdPlus1)); |
| 536 | |
| 537 | // load coordinates |
| 538 | this->Line->Points->SetPoint(0, this->Points->GetPoint(edgeId)); |
| 539 | this->Line->Points->SetPoint(1, this->Points->GetPoint(edgeIdPlus1)); |
| 540 | |
| 541 | return this->Line; |
| 542 | } |
| 543 | |
| 544 | //------------------------------------------------------------------------------ |
| 545 | // Plane intersection plus in/out test on triangle. The in/out test is |
no test coverage detected