3 #include "SMDS_UnstructuredGrid.hxx"
8 //vtkCellLinks::Link* SMDS_CellLinks::AdjustSize(vtkIdType sz)
11 // vtkCellLinks::Link *newArray;
12 // vtkIdType newSize = sz;
13 // vtkCellLinks::Link linkInit = {0,NULL};
15 // newArray = new vtkCellLinks::Link[newSize];
17 // for (i=0; i<sz && i<this->Size; i++)
19 // newArray[i] = this->Array[i];
22 // for (i=this->Size; i < newSize ; i++)
24 // newArray[i] = linkInit;
27 // this->Size = newSize;
28 // delete [] this->Array;
29 // this->Array = newArray;
31 // return this->Array;
34 //SMDS_CellLinks* SMDS_CellLinks::New()
36 // return new SMDS_CellLinks();
39 //SMDS_CellLinks::SMDS_CellLinks() : vtkCellLinks()
43 //SMDS_CellLinks::~SMDS_CellLinks()
48 ///*! initialize an SMDS_CellLinks instance instead of a vtkCellLinks instance
51 //void SMDS_UnstructuredGrid::BuildLinks()
53 // // Remove the old links if they are already built
56 // this->Links->UnRegister(this);
59 // this->Links = SMDS_CellLinks::New();
60 // this->Links->Allocate(this->GetNumberOfPoints());
61 // this->Links->Register(this);
62 // this->Links->BuildLinks(this, this->Connectivity);
63 // this->Links->Delete();
66 //SMDS_CellLinks* SMDS_UnstructuredGrid::GetCellLinks()
68 // return static_cast<SMDS_CellLinks*>(this->Links);
71 SMDS_UnstructuredGrid* SMDS_UnstructuredGrid::New()
73 MESSAGE("SMDS_UnstructuredGrid::New");
74 return new SMDS_UnstructuredGrid();
77 SMDS_UnstructuredGrid::SMDS_UnstructuredGrid() : vtkUnstructuredGrid()
81 SMDS_UnstructuredGrid::~SMDS_UnstructuredGrid()
86 unsigned long SMDS_UnstructuredGrid::GetMTime()
88 unsigned long mtime = vtkUnstructuredGrid::GetMTime();
89 MESSAGE("vtkUnstructuredGrid::GetMTime: " << mtime);
93 void SMDS_UnstructuredGrid::UpdateInformation()
95 MESSAGE("SMDS_UnstructuredGrid::UpdateInformation");
96 return vtkUnstructuredGrid::UpdateInformation();