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

Method AppendConnectivity

IO/HDF/vtkHDFWriter.cxx:1035–1053  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1033
1034//------------------------------------------------------------------------------
1035bool vtkHDFWriter::AppendConnectivity(hid_t group, vtkCellArray* input)
1036{
1037 vtkSmartPointer<vtkDataArray> connArray = nullptr;
1038 if (input && input->GetConnectivityArray())
1039 {
1040 connArray = input->GetConnectivityArray();
1041 }
1042 else
1043 {
1044 connArray = vtkSmartPointer<vtkIntArray>::New();
1045 connArray->SetNumberOfValues(0);
1046 }
1047 if (!this->Impl->AddOrCreateDataset(group, "Connectivity", H5T_STD_I64LE, connArray))
1048 {
1049 vtkErrorMacro(<< "Can not create Connectivity dataset when creating: " << this->FileName);
1050 return false;
1051 }
1052 return true;
1053}
1054
1055//------------------------------------------------------------------------------
1056bool vtkHDFWriter::AppendPoints(hid_t group, vtkPointSet* input)

Callers 2

WriteDatasetToFileMethod · 0.95
AppendPrimitiveCellsMethod · 0.95

Calls 4

GetConnectivityArrayMethod · 0.80
AddOrCreateDatasetMethod · 0.80
NewFunction · 0.50
SetNumberOfValuesMethod · 0.45

Tested by

no test coverage detected