| 521 | } |
| 522 | |
| 523 | void vtkSplineWidget::BuildRepresentation() |
| 524 | { |
| 525 | // Handles have changed position, re-compute the spline coeffs |
| 526 | vtkPoints* points = this->ParametricSpline->GetPoints(); |
| 527 | if (points->GetNumberOfPoints() != this->NumberOfHandles) |
| 528 | { |
| 529 | points->SetNumberOfPoints(this->NumberOfHandles); |
| 530 | } |
| 531 | |
| 532 | double pt[3]; |
| 533 | int i; |
| 534 | for (i = 0; i < this->NumberOfHandles; ++i) |
| 535 | { |
| 536 | this->HandleGeometry[i]->GetCenter(pt); |
| 537 | points->SetPoint(i, pt); |
| 538 | } |
| 539 | this->ParametricSpline->Modified(); |
| 540 | } |
| 541 | |
| 542 | int vtkSplineWidget::HighlightHandle(vtkProp* prop) |
| 543 | { |
no test coverage detected