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

Method InitializeQuadHash

Filters/Geometry/vtkDataSetSurfaceFilter.cxx:2291–2312  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2289
2290//------------------------------------------------------------------------------
2291void vtkDataSetSurfaceFilter::InitializeQuadHash(vtkIdType numPoints)
2292{
2293 vtkIdType i;
2294
2295 if (this->QuadHash)
2296 {
2297 this->DeleteQuadHash();
2298 }
2299
2300 // Prepare our special quad allocator (for efficiency).
2301 this->InitFastGeomQuadAllocation(numPoints);
2302
2303 this->QuadHash = new vtkFastGeomQuad*[numPoints];
2304 this->QuadHashLength = numPoints;
2305 this->PointMap = new vtkIdType[numPoints];
2306 for (i = 0; i < numPoints; ++i)
2307 {
2308 this->QuadHash[i] = nullptr;
2309 this->PointMap[i] = -1;
2310 }
2311 this->EdgeMap = new vtkEdgeInterpolationMap;
2312}
2313
2314//------------------------------------------------------------------------------
2315void vtkDataSetSurfaceFilter::DeleteQuadHash()

Callers 2

Calls 2

DeleteQuadHashMethod · 0.95

Tested by

no test coverage detected