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

Method ShouldRefine

Filters/Sources/vtkRandomHyperTreeGridSource.cxx:325–329  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

323
324//------------------------------------------------------------------------------
325bool vtkRandomHyperTreeGridSource::ShouldRefine(vtkIdType level)
326{
327 this->NodeRNG->Next();
328 return level < this->MaxDepth && this->NodeRNG->GetValue() < this->SplitFraction;
329}
330
331//------------------------------------------------------------------------------
332double vtkRandomHyperTreeGridSource::GenerateMask(vtkHyperTreeGridNonOrientedCursor* cursor,

Callers 1

SubdivideLeavesMethod · 0.95

Calls 2

NextMethod · 0.45
GetValueMethod · 0.45

Tested by

no test coverage detected