Parameters |
Description |
double height |
[in] Value of the pyramid's height. |
int sides |
[in] Quantity of sides for the pyramid. |
double radius |
[in] Radius for circle inscribed into the bottom polygon. |
double topRadius = 0.0 |
[in] Radius for circle inscribed into the top polygon. |
eOk if successful or an appropriate error code otherwise.
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.
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.
The following constraints are applied:
Copyright © 2002–2021. Open Design Alliance. All rights reserved.
|