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

Method InitWithPoints

Testing/GenericBridge/vtkBridgeCellIterator.cxx:226–236  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Description: Used internally by vtkBridgeCell. Iterate on a boundary cell (defined by its points `pts' with coordinates `coords', dimension `dim' and unique id `cellid') of a cell. \pre coords_exist: coords!=0 \pre pts_exist: pts!=0 \pre valid_dim: dim>=0 && dim<=2 \pre valid_points: pts->GetNumberOfIds()>dim

Source from the content-addressed store, hash-verified

224// \pre valid_dim: dim>=0 && dim<=2
225// \pre valid_points: pts->GetNumberOfIds()>dim
226void vtkBridgeCellIterator::InitWithPoints(
227 vtkPoints* coords, vtkIdList* pts, int dim, vtkIdType cellid)
228{
229 assert("pre: coords_exist" && coords != nullptr);
230 assert("pre: pts_exist" && pts != nullptr);
231 assert("pre: valid_dim" && dim >= 0 && dim <= 2);
232 assert("pre: valid_points" && pts->GetNumberOfIds() > dim);
233
234 this->IteratorOneCell->InitWithPoints(coords, pts, dim, cellid);
235 this->CurrentIterator = this->IteratorOneCell;
236}
237VTK_ABI_NAMESPACE_END

Callers 1

FindClosestBoundaryMethod · 0.45

Calls 2

assertFunction · 0.50
GetNumberOfIdsMethod · 0.45

Tested by

no test coverage detected