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

Method GetMaxSubdivisionLevel

Common/DataModel/vtkSimpleCellTessellator.cxx:2666–2670  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Description: Return the maximum level of subdivision. It is used to prevent from infinite loop in degenerated cases. For order 3 or higher, if the inflection point is exactly on the mid-point, error metric will not detect that a subdivision is required. 0 means no subdivision, neither fixed nor adaptive. \post positive_

Source from the content-addressed store, hash-verified

2664// neither fixed nor adaptive.
2665// \post positive_result: result>=GetFixedSubdivisions()
2666int vtkSimpleCellTessellator::GetMaxSubdivisionLevel()
2667{
2668 assert("post: positive_result" && this->MaxSubdivisionLevel >= this->FixedSubdivisions);
2669 return this->MaxSubdivisionLevel;
2670}
2671
2672//------------------------------------------------------------------------------
2673// Description:

Callers 3

SetFixedSubdivisionsMethod · 0.95
RefineMethod · 0.80

Calls 1

assertFunction · 0.50

Tested by

no test coverage detected