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] Specifies how many divisions will be made for the base circle.  
OdInt32 divSweepPath 
[in] Specifies how many divisions will be 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.  

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

Creates a mesh of a torus. 

 

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