------------------------------------------------------------------------------ Place a tensor at a specified position
| 1111 | //------------------------------------------------------------------------------ |
| 1112 | // Place a tensor at a specified position |
| 1113 | void vtkTensorRepresentation::PlaceTensor(double tensor[9], double pos[3]) |
| 1114 | { |
| 1115 | // Now update the widget/representation from the tensor |
| 1116 | this->SetTensor(tensor); |
| 1117 | |
| 1118 | // Now translate the tensor |
| 1119 | double* pts = static_cast<vtkDoubleArray*>(this->Points->GetData())->GetPointer(0); |
| 1120 | double* center = pts + 3 * 14; |
| 1121 | this->Translate(center, pos); |
| 1122 | } |
| 1123 | |
| 1124 | //------------------------------------------------------------------------------ |
| 1125 | void vtkTensorRepresentation::PlaceWidget(double bds[6]) |
no test coverage detected