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

Method NewCellIterator

Testing/GenericBridge/vtkBridgeDataSet.cxx:324–333  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Description: Cells of dimension `dim' (or all dimensions if -1) that explicitly define the dataset. For instance, it will return only tetrahedra if the mesh is defined by tetrahedra. If the mesh is composed of two parts, one with tetrahedra and another part with triangles, it will return both, but will not return edges

Source from the content-addressed store, hash-verified

322// \pre valid_dim_range: (dim>=-1) && (dim<=3)
323// \post result_exists: result!=0
324vtkGenericCellIterator* vtkBridgeDataSet::NewCellIterator(int dim)
325{
326 assert("pre: valid_dim_range" && (dim >= -1) && (dim <= 3));
327
328 vtkBridgeCellIterator* result = vtkBridgeCellIterator::New();
329 result->InitWithDataSet(this, dim); // vtkBridgeCellIteratorOnDataSetCells
330
331 assert("post: result_exists" && result != nullptr);
332 return result;
333}
334
335//------------------------------------------------------------------------------
336// Description:

Callers

nothing calls this directly

Calls 3

assertFunction · 0.50
NewFunction · 0.50
InitWithDataSetMethod · 0.45

Tested by

no test coverage detected