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

Function Allocate

Common/DataModel/vtkPolyData.h:305–308  ·  view source on GitHub ↗

* Method allocates initial storage for vertex, line, polygon, and * triangle strip arrays. Use this method before the method * PolyData::InsertNextCell(). (Or, provide vertex, line, polygon, and * triangle strip cell arrays). @a extSize is no longer used. */

Source from the content-addressed store, hash-verified

303 * triangle strip cell arrays). @a extSize is no longer used.
304 */
305 void Allocate(vtkIdType numCells = 1000, int vtkNotUsed(extSize) = 1000)
306 {
307 this->AllocateExact(numCells, numCells);
308 }
309
310 /**
311 * Similar to the method above, this method allocates initial storage for

Callers

nothing calls this directly

Calls 3

AllocateProportionalMethod · 0.80
AllocateExactMethod · 0.45
GetNumberOfCellsMethod · 0.45

Tested by

no test coverage detected