API Reference > OdDb Classes > OdDbSubDMesh Class > OdDbSubDMesh Methods > OdDbSubDMesh::setCylinder Method
OdDbSubDMesh::setCylinder Method
Syntax
C++
OdResult setCylinder(double majorRadius, double minorRadius, double height, OdInt32 divAxis, OdInt32 divHeight, OdInt32 divCap, OdInt32 subDLevel);
Parameters 
Description 
double majorRadius 
[in] Major radius.  
double minorRadius 
[in] Minor radius.  
double height 
[in] Height of a cylinder.  
OdInt32 divAxis 
[in] Specify how many divisions are made for the base circle.  
OdInt32 divHeight 
[in] Specify how many divisions are made in the direction of the height of a cylinder.  
OdInt32 divCap 
[in] Specify how many radial divisions are made for the base circle.  
OdInt32 subDLevel 
[in] Level of smoothness.  

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

Creates a mesh of a cylinder. 

 

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