Close

Relief for ODA Team in Ukraine

Learn more
ODA Kernel SDK
OdGeCone Class
Syntax
C++
class OdGeCone : public OdGeSurface;

This class represents right circular cones.

A right circular cone is defined by its 

  • axis of symmetry
  • height
  • sine and cosine of the half angle
  • origin (a point on the axis of symmetry)
  • radius at the origin
  • U parameter scale.
 

The cross section containing the origin is referred to as the base. The radius at the base cannot be zero. This cone may extend on either side of the base. This cone extends only on one direction from the apex, i.e. it is not a double cone. 

The half angle is measured between the symmetric axis and the generating line of this cone. If cosine of the half angle is positive, this cone is convex. If cosine of the half angle is negative, this cone is concave. If cosine and sine of the half angle have the same sign, the apex is on the opposite direction of the symmetric axis and radius increases along the symmetric axis. If cosine and sine of the half angle have different signs, the apex is on the direction of the symmetric axis and radius decreases along the symmetric axis. Both cosine and sine of the half angle can't be zeros. 

The height interval of this cone is specified relative to its origin. Height increases in the direction of the symmetric axis. Height interval must be bounded. 

Parameter V is the angle of revolution measured from the refAxis (an axis perpendicular to the axis of symmetry). For a closed cone, it defaults to [-OdaPI, OdaPI). The right hand rule applied along the direction of the axis of symmetry defines the positive direction of V. The surface is periodic in V with a period of Oda2PI. 

Parameter U varies along the generating line. U is dimensionless, measured in U parameter scale (which equals to the radius by default), multiplied by the absolute value of cosine of the half angle. U increases in the direction of the axis of symmetry. However, if U parameter scale is negative, U decreases in the direction of the axis of symmetry. U = 0 corresponds to the base of this cone. 

If cosine and sine of the half angle have the same sign, U and height are less than zero at the apex. If cosine and sine of the half angle have different signs, U and height are greater than zero at the apex. 

[umin, umax] x [vmin, vmax] defines a four sided conical patch bounded by two straight lines (at angles vmin and vmax), and two circular arcs (at umin and umax). The following must be observed when defining a cone: 

  • umin < umax
  • |vmax - vmin| <= Oda2PI.
  • baseRadius > 0.0
 

Corresponding C++ library: TD_Ge 

 

OdGeConeOdGeConeOdGeCone

File: GeCone.h 

Module: API Reference 

Show:
No members matching the current filter
Show:
No members matching the current filter
Show:
No members matching the current filter
Copyright © 2002-2022. Open Design Alliance All rights reserved.