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] 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 cone.  
OdInt32 divCap 
[in] Specify how many radial divisions are made for the base circle.  
double radiusRatio 
[in] Ratio of top to bottom radii.  
OdInt32 subDLevel 
[in] Level of smoothness.  

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

Creates a mesh of a cone. 

 

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