API Reference > OdDb Classes > OdDbSubDMesh Class > OdDbSubDMesh Methods > OdDbSubDMesh::setSphere Method
OdDbSubDMesh::setSphere Method
Syntax
C++
OdResult setSphere(double radius, OdInt32 divAxis, OdInt32 divHeight, OdInt32 subDLevel);
Parameters 
Description 
double radius 
[in] Sphere radius.  
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 sphere.  
OdInt32 subDLevel 
[in] Level of smoothness.  

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

Creates a mesh of a sphere. 

 

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