------------------------------------------------------------------------------ This function is supposed to be called only at toplevel (for passing data from third party to the hash point table)
| 1406 | // This function is supposed to be called only at toplevel (for passing data |
| 1407 | // from third party to the hash point table) |
| 1408 | void vtkSimpleCellTessellator::InsertPointsIntoEdgeTable(vtkTriangleTile& tri) |
| 1409 | { |
| 1410 | double global[3]; |
| 1411 | |
| 1412 | for (int j = 0; j < 3; j++) |
| 1413 | { |
| 1414 | // Need to check first if point is not already in the hash table |
| 1415 | // since EvaluateLocation / EvaluateTuple are expensive calls |
| 1416 | if (!this->EdgeTable->CheckPoint(tri.GetPointId(j))) |
| 1417 | { |
| 1418 | // it's real space coordinate: |
| 1419 | this->GenericCell->EvaluateLocation(0, tri.GetVertex(j), global); |
| 1420 | |
| 1421 | // Then scalar value associated with point: |
| 1422 | this->GenericCell->InterpolateTuple( |
| 1423 | this->AttributeCollection, tri.GetVertex(j), this->Scalars); |
| 1424 | |
| 1425 | // Put everything in this point hash table |
| 1426 | this->EdgeTable->InsertPointAndScalar(tri.GetPointId(j), global, this->Scalars); |
| 1427 | } |
| 1428 | } |
| 1429 | } |
| 1430 | |
| 1431 | //------------------------------------------------------------------------------ |
| 1432 | // |
no test coverage detected