API Reference > OdDb Classes > OdDbSubDMesh Class > OdDbSubDMesh Methods > OdDbSubDMesh::setPyramid Method
OdDbSubDMesh::setPyramid Method
Syntax
C++
OdResult setPyramid(double radius, double height, OdInt32 divLength, OdInt32 divHeight, OdInt32 divCap, OdInt32 nSides, double radiusRatio, OdInt32 subDLevel);
Parameters 
Description 
double radius 
[in] Radius of a circle inscribed in a pyramid.  
double height 
[in] Pyramid height.  
OdInt32 divLength 
[in] Specifies how many divisions will be made along the length direction.  
OdInt32 divHeight 
[in] Specifies how many divisions will be made along the height direction.  
OdInt32 divCap 
[in] Specifies how many radial divisions will be made for the base face.  
OdInt32 nSides 
[in] Number of sides that pyramid will have.  
double radiusRatio 
[in] Ratio of major to minor radii.  
OdInt32 subDLevel 
[in] Level of smoothness.  

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

Creates a mesh of a pyramid. 

 

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