Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
OdDbSubDMesh::setTorus Method
Syntax
C++
OdResult setTorus(double majorRadius, OdInt32 divSection, OdInt32 divSweepPath, double sectionRadiusRatio, double sectionRotate, OdInt32 subDLevel);

Creates a mesh of a torus. 

 

Parameters
Description
majorRadius
[in] Major radius of a torus.
divSection
[in] Specify how many divisions are made for the base circle.
divSweepPath
[in] Specify how many divisions are made along the torus' path.
sectionRadiusRatio
[in] Ratio of major to minor radii.
sectionRotate
[in] Angle of section rotation.
subDLevel
[in] Level of smoothness.

Returns eOk if the operation completed successfully, or an appropriate error code otherwise.

Copyright © 2002-2022. Open Design Alliance All rights reserved.