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

Method GetNumberOfContacts

Filters/Modeling/vtkCollisionDetectionFilter.cxx:146–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146int vtkCollisionDetectionFilter::GetNumberOfContacts()
147{
148 if (this->GetOutput(0) && this->GetOutput(0)->GetFieldData()->GetArray("ContactCells"))
149 {
150 return this->GetOutput(0)->GetFieldData()->GetArray("ContactCells")->GetNumberOfTuples();
151 }
152 else
153 {
154 vtkErrorMacro(
155 << "Number of contacts cannot be calculated, nullptr found! Call Update() before.");
156 return -1;
157 }
158}
159
160void vtkCollisionDetectionFilter::SetTransform(int i, vtkLinearTransform* transform)
161{

Callers 2

RequestDataMethod · 0.95
TestCollisionDetectionFunction · 0.80

Calls 4

GetOutputMethod · 0.45
GetArrayMethod · 0.45
GetFieldDataMethod · 0.45
GetNumberOfTuplesMethod · 0.45

Tested by 1

TestCollisionDetectionFunction · 0.64