Creates a pyramid. World origin is centered about the base of the pyramid and the pyramid is positioned at half of the specified height above the world origin.
Parameters
Parameters
Description
height
[in] Value of the pyramid's height.
sides
[in] Quantity of sides for the pyramid.
radius
[in] Radius for circle inscribed into the bottom polygon.
topRadius
[in] Radius for circle inscribed into the top polygon.
Returns
eOk if successful or an appropriate error code otherwise.
Remarks
The pyramid's base is located in the X-Y plane of the WCS. The pyramid's direction (from the base to the top) coincides with the positive direction of the Z-axis. When radius and topRadius values are equal, a prism is created.