Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
OdModelerGeometry::createTorus Method
Syntax
C++
virtual void createTorus(double majorRadius, double minorRadius) = 0;

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

 

Parameters
Description
majorRadius
[in] Radius of the torus.
minorRadius
[in] Radius of the tube.

The following constraints apply:

  • minorRadius >= 1e-6
  • |majorRadius| >= 1e-6
  • if majorRadius < 0, then minorRadius > |majorRadius| + 1e-6
Copyright © 2002-2022. Open Design Alliance All rights reserved.