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

Method Initialize

Filters/Modeling/vtkSelectEnclosedPoints.cxx:265–279  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

263
264//------------------------------------------------------------------------------
265void vtkSelectEnclosedPoints::Initialize(vtkPolyData* surface)
266{
267 if (!this->CellLocator)
268 {
269 this->CellLocator = vtkStaticCellLocator::New();
270 }
271
272 this->Surface = surface;
273 surface->GetBounds(this->Bounds);
274 this->Length = surface->GetLength();
275
276 // Set up structures for acceleration ray casting
277 this->CellLocator->SetDataSet(surface);
278 this->CellLocator->BuildLocator();
279}
280
281//------------------------------------------------------------------------------
282int vtkSelectEnclosedPoints::IsInside(vtkIdType inputPtId)

Callers 15

RequestDataMethod · 0.95
RequestDataMethod · 0.45
RandomGenerationMethod · 0.45
RequestDataMethod · 0.45
GreedyEdgeSearchMethod · 0.45
RequestDataMethod · 0.45
subDivideTetra.pyFile · 0.45
extrudeCopyCD.pyFile · 0.45
smoothCyl2.pyFile · 0.45
camera.pyFile · 0.45
KlineBottle.pyFile · 0.45

Calls 5

NewFunction · 0.50
GetBoundsMethod · 0.45
GetLengthMethod · 0.45
SetDataSetMethod · 0.45
BuildLocatorMethod · 0.45

Tested by

no test coverage detected