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

Method GetCellType

IO/NetCDF/vtkMPASReader.cxx:2310–2340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2308//------------------------------------------------------------------------------
2309
2310unsigned char vtkMPASReader::GetCellType()
2311{
2312 // write cell types
2313 unsigned char cellType = VTK_TRIANGLE;
2314 switch (this->PointsPerCell)
2315 {
2316 case 3:
2317 if (!ShowMultilayerView)
2318 {
2319 cellType = VTK_TRIANGLE;
2320 }
2321 else
2322 {
2323 cellType = VTK_WEDGE;
2324 }
2325 break;
2326 case 4:
2327 if (!ShowMultilayerView)
2328 {
2329 cellType = VTK_QUAD;
2330 }
2331 else
2332 {
2333 cellType = VTK_HEXAHEDRON;
2334 }
2335 break;
2336 default:
2337 break;
2338 }
2339 return cellType;
2340}
2341
2342//------------------------------------------------------------------------------
2343// Add cells to vtk data structures

Callers 15

RequestDataMethod · 0.45
MakeMeshMethod · 0.45
FillMultiblockMethod · 0.45
WriteDataMethod · 0.45
TestProStarReaderFunction · 0.45
VTKToXdmfMethod · 0.45
XdmfSubsetToVTKMethod · 0.45
ReadMeshMethod · 0.45
RemoveDeletedCellsMethod · 0.45
CreatePolyFaceFunction · 0.45
WriteCellsInlineMethod · 0.45

Calls

no outgoing calls

Tested by 15

TestProStarReaderFunction · 0.36
get_cell_by_cell_typeFunction · 0.36
assert_cells_equalFunction · 0.36
TestOutputFunction · 0.36
TestCGNSReaderHOElementsFunction · 0.36
TestOutputFunction · 0.36
ValidatePolyhedraImplFunction · 0.36
ValidateMeshTypeMixed2DFunction · 0.36