API Reference > OdGe Classes > OdGeTorus Class > OdGeTorus Methods > OdGeTorus::isDoughnut Method
OdGeTorus::isDoughnut Method
Syntax
C++
bool isDoughnut() const;

true if and only if (majorRadius >= |minorRadius| + OdGeContext::gTol.equalVector()).

Checks if (majorRadius >= |minorRadius| - OdGeContext::gTol.equalVector()), creating a solid with a hole in the middle.

Exactly one of the following functions will be true for a given torus:

  • isApple()
  • isDoughnut()
  • isLemon()
  • isVortex()

Copyright © 2002–2020. Open Design Alliance. All rights reserved.