API Reference > OdDb Classes > OdDbSubDMesh Class > OdDbSubDMesh Methods > OdDbSubDMesh::setTorus Method
OdDbSubDMesh::setTorus Method
Syntax
C++
OdResult setTorus(double majorRadius, OdInt32 divSection, OdInt32 divSweepPath, double sectionRadiusRatio, double sectionRotate, OdInt32 subDLevel);
Parameters 
Description 
double majorRadius 
[in] Major radius of a torus.  
OdInt32 divSection 
[in] Specify how many divisions are made for the base circle.  
OdInt32 divSweepPath 
[in] Specify how many divisions are made along the torus' path.  
double sectionRadiusRatio 
[in] Ratio of major to minor radii.  
double sectionRotate 
[in] Angle of section rotation.  
OdInt32 subDLevel 
[in] Level of smoothness.  

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

Creates a mesh of a torus. 

 

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