Commit 9d7356ed authored by Will Schroeder's avatar Will Schroeder
Browse files

Adapted back to multibuild workflow

parent c79ca6b3
......@@ -161,6 +161,7 @@ int TestStaticCellLinks( int, char *[] )
vtkSmartPointer<vtkPolyData>::New();
pdata = ss->GetOutput();
slinks.Initialize(); //reuse
slinks.BuildLinks(pdata);
// The first point is at the pole
......
......@@ -133,9 +133,6 @@ void vtkCellLinks::BuildLinks(vtkDataSet *data)
vtkIdType cellId;
unsigned short *linkLoc;
// Make sure that we clear out previous allocation
this->Initialize();
// fill out lists with number of references to cells
linkLoc = new unsigned short[numPts];
memset(linkLoc, 0, numPts*sizeof(unsigned short));
......@@ -217,9 +214,6 @@ void vtkCellLinks::BuildLinks(vtkDataSet *data, vtkCellArray *Connectivity)
vtkIdType *pts=0;
vtkIdType loc = Connectivity->GetTraversalLocation();
// Make sure that we clear out previous allocation
this->Initialize();
// traverse data to determine number of uses of each point
for (Connectivity->InitTraversal();
Connectivity->GetNextCell(npts,pts);)
......
......@@ -55,7 +55,7 @@ public:
virtual void BuildLinks(vtkDataSet *data);
// Description:
// Build the link list array.
// Build the link list array with a provided connectivity array.
void BuildLinks(vtkDataSet *data, vtkCellArray *Connectivity);
// Description:
......
......@@ -58,7 +58,6 @@ BuildLinks(vtkDataSet *ds)
// Any other type of dataset. Generally this is not called as datasets have
// their own, more efficient ways of getting similar information.
// Make sure that we clear out previous allocation.
this->Initialize();
this->NumCells = ds->GetNumberOfCells();
this->NumPts = ds->GetNumberOfPoints();
......@@ -117,9 +116,6 @@ BuildLinks(vtkDataSet *ds)
template <typename TIds> void vtkStaticCellLinksTemplate<TIds>::
BuildLinks(vtkUnstructuredGrid *ugrid)
{
// Make sure that we clear out previous allocation.
this->Initialize();
// Basic information about the grid
this->NumCells = ugrid->GetNumberOfCells();
this->NumPts = ugrid->GetNumberOfPoints();
......@@ -183,9 +179,6 @@ BuildLinks(vtkUnstructuredGrid *ugrid)
template <typename TIds> void vtkStaticCellLinksTemplate<TIds>::
BuildLinks(vtkPolyData *pd)
{
// Make sure that we clear out previous allocation.
this->Initialize();
// Basic information about the grid
this->NumCells = pd->GetNumberOfCells();
this->NumPts = pd->GetNumberOfPoints();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment