------------------------------------------------------------------------------
| 535 | |
| 536 | //------------------------------------------------------------------------------ |
| 537 | vtkCell* vtkQuad::GetEdge(int edgeId) |
| 538 | { |
| 539 | int edgeIdPlus1 = edgeId + 1; |
| 540 | |
| 541 | if (edgeIdPlus1 > 3) |
| 542 | { |
| 543 | edgeIdPlus1 = 0; |
| 544 | } |
| 545 | |
| 546 | // load point id's |
| 547 | this->Line->PointIds->SetId(0, this->PointIds->GetId(edgeId)); |
| 548 | this->Line->PointIds->SetId(1, this->PointIds->GetId(edgeIdPlus1)); |
| 549 | |
| 550 | // load coordinates |
| 551 | this->Line->Points->SetPoint(0, this->Points->GetPoint(edgeId)); |
| 552 | this->Line->Points->SetPoint(1, this->Points->GetPoint(edgeIdPlus1)); |
| 553 | |
| 554 | return this->Line; |
| 555 | } |
| 556 | |
| 557 | //------------------------------------------------------------------------------ |
| 558 | // Intersect plane; see whether point is in quadrilateral. This code |