API Reference > Other Classes > OdModelerGeometry Class > OdModelerGeometry Methods > OdModelerGeometry::createTorus Method
OdModelerGeometry::createTorus Method
Syntax
C++
virtual void createTorus(double majorRadius, double minorRadius) = 0;
Parameters 
Description 
double majorRadius 
[in] Radius of the torus  
double minorRadius 
[in] Radius of the tube. 

Creates a WCS aligned torus centered about the world origin and with the Z-axis as its axis of rotation. 

 

The following constraints apply: 

  • minorRadius >= 1e-6.
  • |majorRadius| >= 1e-6
  • if majorRadius < 0, then minorRadius > |majorRadius| + 1e-6

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