------------------------------------------------------------------------------ Description: Compute the closest boundary of the current sub-cell `subId' for point `pcoord' (in parametric coordinates) in `boundary', and return whether the point is inside the cell or not. `boundary' is of dimension GetDimension()-1. \pre positive_subId: subId>=0
| 379 | // GetDimension()-1. |
| 380 | // \pre positive_subId: subId>=0 |
| 381 | int vtkBridgeCell::FindClosestBoundary( |
| 382 | int subId, double pcoords[3], vtkGenericCellIterator*& boundary) |
| 383 | { |
| 384 | assert("pre: positive_subId" && subId >= 0); |
| 385 | |
| 386 | vtkIdList* pts = vtkIdList::New(); |
| 387 | int result = this->Cell->CellBoundary(subId, pcoords, pts); |
| 388 | static_cast<vtkBridgeCellIterator*>(boundary)->InitWithPoints( |
| 389 | this->Cell->Points, pts, this->GetDimension() - 1, 0); // id of the boundary always 0? |
| 390 | pts->Delete(); |
| 391 | |
| 392 | return result; |
| 393 | } |
| 394 | |
| 395 | //------------------------------------------------------------------------------ |
| 396 | // Description: |
nothing calls this directly
no test coverage detected