Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
OdDbSubDMesh::setPyramid Method
Syntax
C++
OdResult setPyramid(double radius, double height, OdInt32 divLength, OdInt32 divHeight, OdInt32 divCap, OdInt32 nSides, double radiusRatio, OdInt32 subDLevel);

Creates a mesh of a pyramid. 

 

Parameters
Description
radius
[in] Radius of a circle inscribed in a pyramid.
height
[in] Pyramid height.
divLength
[in] Specify how many divisions are made along the length direction.
divHeight
[in] Specify how many divisions are made along the height direction.
divCap
[in] Specify how many radial divisions are made for the base face.
nSides
[in] Number of sides that pyramid will have.
radiusRatio
[in] Ratio of major to minor radii.
subDLevel
[in] Level of smoothness.

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

Copyright © 2002-2022. Open Design Alliance All rights reserved.