Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
OdModelerGeometry::createFrustum Method
Syntax
C++
virtual void createFrustum(double height, double xRadius, double yRadius, double topXRadius) = 0;

Creates a WCS aligned frustum centered about the world origin. 

 

Parameters
Description
height
[in] Dimension along the WCS Z-axis.
xRadius
[in] Base radius along the WCS X-axis.
yRadius
[in] Base radius along the WCS Y-axis.
topXRadius
[in] Top radius along the WCS X-axis.

The function can generate a frustum that is any one of the following: 

 

  • A circular cylinder
  • An elliptical cylinder
  • A circular cone
  • An elliptical cone
  • A truncated circular cone
  • A truncated elliptical cone

 

The following constraints apply:

  • height >= 1e-6
  • xRadius >= 1e-6
  • yRadius >= 1e-6
  • topXRadius >= 1e-6
Copyright © 2002-2022. Open Design Alliance All rights reserved.