API Reference > OdGe Classes > OdGeEllipCylinder Class
OdGeEllipCylinder Class
OdGeEllipCylinderOdGeEllipCylinderOdGeEllipCylinder
Syntax
C++
class OdGeEllipCylinder : public OdGeSurface;

GeEllipCylinder.h

This class represents cylinders with an elliptical cross-section.

An elliptical cylinder is defined by:

  • major and minor radii
  • origin (a point on the axis of symmetry)
  • axis of symmetry
  • major axis
  • height
  • U parameter scale.
 

It is generated by a line parallel to the axis of symmetry, along an elliptical path. 

The height interval of this elliptical cylinder is specified relative to its origin. Height increases in the direction of the symmetric axis. Height interval can be unbounded. 

Parameter V is the angle of revolution, measured from the major axis to the axis of symmetry. The right hand rule is applied along the direction of the axis of symmetry for positive angles. For a closed cylinder, V defaults to [-OdaPI, OdaPI). 

Parameter U varies along the generating line. U is dimensionless, measured in U parameter scale (which equals to the major radius by default). 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 elliptical cylinder. 

The surface of the cylinder is periodic in V with a period of Oda2PI. 

[umin, umax] x [vmin, vmax] defines a four-sided cylindrical patch bounded by two straight lines (at vmin and vmax) and two circular arcs (at umin and umax). The following constraints apply to the definition of a cylindrical patch: 

  • umin < umax
  • |vmax - vmin| <= Oda2PI
  • majorRadius > 0.0
  • minorRadius > 0.0
 

The angle of a point on an ellipse is measured by projecting the point along a vector perpendicular to the major axis onto a circle whose center is the center of this ellipse and whose radius is the major radius of this ellipse. 

The angle between the major axis of the ellipse, and a vector from the center of the ellipse to the intersection point with the circle, measured counterclockwise, is the angle of the point on the ellipse. 

Corresponding C++ library: TD_Ge 

 

 
Name 
Description 
 
This is the overview for the OdGeEllipCylinder constructor overload. 
 
Name 
Description 
 
Returns the axis of symmetry of this cylinder. 
 
Retrieves the starting and ending angles of this cylinder.
 
 
Retrieves the interval of the axis of symmetry.
 
 
Retrieves U parameter scale. 
 
Returns the cylinder height that corresponds to the specified position on the U-axis. 
 
Checks if the cylinder intersects with a line entity, and returns the number of intersections and the points of intersection.
 
 
Checks if the base of this cylinder is a full ellipse within the specified tolerance.
 
 
Checks if the normal to this surface is pointing outward. 
 
Returns the major axis of this cylinder. 
 
Returns the major radius of the cylinder. 
 
Returns the minor axis of this cylinder. 
 
Returns the minor radius of the cylinder. 
 
Returns the origin of the cylinder. 
 
Returns the ratio of the minor to major radius of the cylinder. 
 
set 
This is the overview for the set method overload. 
 
Sets the start and end angles of the elliptical cylinder.
 
 
Sets the height of the elliptical cylinder.
 
 
Sets OuterNormal according to the parameter.
 
 
Sets the major radius of the elliptical cylinder.
 
 
Sets the minor radius of the elliptical cylinder.
 
 
Sets U parameter scale according to the parameter.
 
 
Name 
Description 
 
= 
Assignment operator for the OdGeEllipCylinder object.
 
Copyright © 2002–2020. Open Design Alliance. All rights reserved.