MCPcopy Create free account
hub / github.com/Kitware/VTK / FindClosestBoundary

Method FindClosestBoundary

Testing/GenericBridge/vtkBridgeCell.cxx:381–393  ·  view source on GitHub ↗

------------------------------------------------------------------------------ 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

Source from the content-addressed store, hash-verified

379// GetDimension()-1.
380// \pre positive_subId: subId>=0
381int 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:

Callers

nothing calls this directly

Calls 6

GetDimensionMethod · 0.95
DeleteMethod · 0.65
assertFunction · 0.50
NewFunction · 0.50
CellBoundaryMethod · 0.45
InitWithPointsMethod · 0.45

Tested by

no test coverage detected