API Reference > OdDb Classes > OdDbSubDMesh Class > OdDbSubDMesh Methods > OdDbSubDMesh::setCone Method
OdDbSubDMesh::setCone Method
Syntax
C++
OdResult setCone(double majorRadius, double minorRadius, double height, OdInt32 divAxis, OdInt32 divHeight, OdInt32 divCap, double radiusRatio, OdInt32 subDLevel);
Parameters 
Description 
double majorRadius 
[in] Major radius.  
double minorRadius 
[in] Minor radius.  
double height 
[in] Height of a cone.  
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 cone.  
OdInt32 divCap 
[in] Specifies how many radial divisions will be made for the base circle.  
double radiusRatio 
[in] Ratio of top to bottom radii.  
OdInt32 subDLevel 
[in] Level of smoothness.  

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

Creates a mesh of a cone. 

 

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