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] Specifies how many divisions will be made for the base circle.  
OdInt32 divHeight 
[in] Specifies how many divisions will be made in the direction of the height of a cylinder.  
OdInt32 divCap 
[in] Specifies 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–2020. Open Design Alliance. All rights reserved.