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] Specify how many divisions are made along the length direction.  
OdInt32 divHeight 
[in] Specify how many divisions are made along the height direction.  
OdInt32 divCap 
[in] Specify how many radial divisions are 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.  

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

Creates a mesh of a pyramid. 

 

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