* @brief Pre-allocate memory in internal data structures to match the used * size of the input vtkCellArray. Does not change * the number of cells, only the array capacities. Existing data is NOT * preserved. * @param other The vtkCellArray to use as a reference. * @return True if allocation succeeds. * @sa Squeeze AllocateEstimate AllocateExact */
| 265 | * @sa Squeeze AllocateEstimate AllocateExact |
| 266 | */ |
| 267 | bool AllocateCopy(vtkCellArray* other) |
| 268 | { |
| 269 | return this->AllocateExact(other->GetNumberOfCells(), other->GetNumberOfConnectivityIds()); |
| 270 | } |
| 271 | |
| 272 | /** |
| 273 | * @brief ResizeExact() resizes the internal structures to hold @a numCells |
nothing calls this directly
no test coverage detected