CFx SDK Documentation
2022 SP0
|
#include <GeEllipCone.h>
Additional Inherited Members | |
Protected Member Functions inherited from OdGeSurface | |
OdGeSurface () | |
OdGeSurface (const OdGeSurface &surf) | |
Protected Member Functions inherited from OdGeEntity3d | |
OdGeEntity3d () | |
OdGeEntity3d (const OdGeEntity3d &) | |
void | connectTo (OdGeEntity3dImpl *) |
This class represents right elliptical cones.
The "base" is the cross section which contains the origin.
The major and minor radii must be greater than 0.
The cone may extend on either side of the base.
The half angle is constrained to the interval (0, OdaPI/2), and is measured from the symmetric axis of this elliptical cone to a point on the major axis.
A negative angle results in an apex which is opposite the direction of the symmetric axis.
Parameter V is the revolution angle measured from the refAxis (which is perpendicular to the axis of symmetry). For a closed cone, it defaults to [-OdaPI, OdaPI). The positive direction of V is defined by applying the right hand rule applied along the axis of symmetry. The surface is periodic in V with a period of Oda2PI.
The angle of point on an ellipse is measured by projecting the point on the ellipse perpendicular to major axis onto a circle whose center is the center of the ellipse and whose radius is the major radius of the 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.
Parameter U varies along the axis of symmetry. U is dimensionless, and increases in the direction of the axis of symmetry. U = 0 corresponds to center of the base of this cone, and U = 1 corresponds to the apex of this cone.
[umin, umax] by [vmin, vmax] defines a conical patch with four sides 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 majorRadius > 0.0 minorRadius > 0.0
The height interval of this elliptical cone is specified relative to its origin (note that the height increases in the direction of the symmetric axis).
Corresponding C++ library: TD_Ge
<group OdGe_Classes>
Definition at line 103 of file GeEllipCone.h.
OdGeEllipCone::OdGeEllipCone | ( | ) |
cosineAngle | [in] The cosine of the angle between the generating line passing through the major axis, and the axis of symmetry. |
sineAngle | [in] The sine of the angle between the generating line passing through the major axis, and the axis of symmetry. |
majorRadius | [in] The major radius of this elliptical cone. |
minorRadius | [in] The minor radius of this elliptical cone. |
baseOrigin | [in] The origin of this elliptical cone. |
axisOfSymmetry | [in] Axis of symmetry (rotation). |
majorAxis | [in] The major axis of this elliptical cone. |
height | [in] Height interval of this elliptical cone. |
startAng | [in] Starting angle of this elliptical cone. |
endAng | [in] Ending angle of this elliptical cone. |
OdGeEllipCone::OdGeEllipCone | ( | const OdGeEllipCone & | ) |
OdGeEllipCone::OdGeEllipCone | ( | double | cosineAngle, |
double | sineAngle, | ||
const OdGePoint3d & | origin, | ||
double | minorRadius, | ||
double | majorRadius, | ||
const OdGeVector3d & | axisOfSymmetry | ||
) |
OdGeEllipCone::OdGeEllipCone | ( | double | cosineAngle, |
double | sineAngle, | ||
const OdGePoint3d & | baseOrigin, | ||
double | minorRadius, | ||
double | majorRadius, | ||
const OdGeVector3d & | axisOfSymmetry, | ||
const OdGeVector3d & | majorAxis, | ||
const OdGeInterval & | height, | ||
double | startAng, | ||
double | endAng | ||
) |
OdGePoint3d OdGeEllipCone::apex | ( | ) | const |
Returns the apex of this elliptical cone.
OdGeVector3d OdGeEllipCone::axisOfSymmetry | ( | ) | const |
Returns the axis of symmetry of this elliptical cone.
OdGePoint3d OdGeEllipCone::baseCenter | ( | ) | const |
Returns the center of the base.
void OdGeEllipCone::getAngles | ( | double & | startAng, |
double & | endAng | ||
) | const |
Returns the starting and ending angles of this elliptical cone.
startAng | [out] Receives the start angle. |
endAng | [out] Receives the end angle. |
void OdGeEllipCone::getHalfAngle | ( | double & | cosineAngle, |
double & | sineAngle | ||
) | const |
Returns the angle between the generating line passing through the major axis, and the axis of symmetry.
void OdGeEllipCone::getHeight | ( | OdGeInterval & | height | ) | const |
Returns the interval of the axis of symmetry.
height | [out] Receives the interval of the axis of symmetry. |
double OdGeEllipCone::halfAngle | ( | ) | const |
Returns the angle between the generating line passing through the major axis, and the axis of symmetry.
double OdGeEllipCone::heightAt | ( | double | u | ) | const |
Returns the height of this elliptical cone corresponding to the specified position on the U-axis.
u | [in] Position on the U-axis of this elliptical cone. |
bool OdGeEllipCone::isClosed | ( | const OdGeTol & | tol = OdGeContext::gTol | ) | const |
Returns true if and only if the base of this elliptical cone is a full ellipse within the specified tolerance.
tol | [in] Geometric tolerance. |
bool OdGeEllipCone::isOuterNormal | ( | ) | const |
Returns true if and only if the normal to this surface is pointing outward.
OdGeVector3d OdGeEllipCone::majorAxis | ( | ) | const |
Returns the major axis of this elliptical cone.
double OdGeEllipCone::majorRadius | ( | ) | const |
Returns the major radius of this elliptical cone.
OdGeVector3d OdGeEllipCone::minorAxis | ( | ) | const |
Returns the minor axis of this elliptical cone.
double OdGeEllipCone::minorRadius | ( | ) | const |
Returns the minor radius of this elliptical cone.
OdGeEllipCone& OdGeEllipCone::operator= | ( | const OdGeEllipCone & | ) |
double OdGeEllipCone::radiusRatio | ( | ) | const |
Returns the ratio of the minor to the major radius of this elliptical cone.
OdGeEllipCone& OdGeEllipCone::set | ( | double | cosineAngle, |
double | sineAngle, | ||
const OdGePoint3d & | center, | ||
double | minorRadius, | ||
double | majorRadius, | ||
const OdGeVector3d & | axisOfSymmetry | ||
) |
Sets the parameters for this elliptical cone according to the arguments, and returns a reference to this elliptical cone.
cosineAngle | [in] The cosine of the angle between the generating line passing through the major axis, and the axis of symmetry. |
sineAngle | [in] The sine of the angle between the generating line passing through the major axis, and the axis of symmetry. |
majorRadius | [in] The major radius of this elliptical cone. |
minorRadius | [in] The minor radius of this elliptical cone. |
center | [in] The origin of this elliptical cone. |
axisOfSymmetry | [in] Axis of symmetry (rotation). |
OdGeEllipCone& OdGeEllipCone::set | ( | double | cosineAngle, |
double | sineAngle, | ||
const OdGePoint3d & | center, | ||
double | minorRadius, | ||
double | majorRadius, | ||
const OdGeVector3d & | axisOfSymmetry, | ||
const OdGeVector3d & | majorAxis, | ||
const OdGeInterval & | height, | ||
double | startAng, | ||
double | endAng | ||
) |
Sets the parameters for this elliptical cone according to the arguments, and returns a reference to this elliptical cone.
cosineAngle | [in] The cosine of the angle between the generating line passing through the major axis, and the axis of symmetry. |
sineAngle | [in] The sine of the angle between the generating line passing through the major axis, and the axis of symmetry. |
majorRadius | [in] The major radius of this elliptical cone. |
minorRadius | [in] The minor radius of this elliptical cone. |
center | [in] The origin of this elliptical cone. |
axisOfSymmetry | [in] Axis of symmetry (rotation). |
majorAxis | [in] The major axis of this elliptical cone. |
height | [in] Height interval of this elliptical cone. |
startAng | [in] Starting angle of this elliptical cone. |
endAng | [in] Ending angle of this elliptical cone in. |
OdGeEllipCone& OdGeEllipCone::setAngles | ( | double | startAng, |
double | endAng | ||
) |
Sets the starting and ending angles of this elliptical cone.
startAng | [in] Start angle in radians. |
endAng | [in] End angle in radians. |
OdGeEllipCone& OdGeEllipCone::setHeight | ( | const OdGeInterval & | height | ) |
Sets the height interval of this elliptical cone.
height | [in] Height interval of this elliptical cone. |
OdGeEllipCone& OdGeEllipCone::setMajorRadius | ( | double | majorRadius | ) |
Sets major radius of this elliptical cone.
majorRadius | [in] The major radius of this elliptical cone. |
OdGeEllipCone& OdGeEllipCone::setMinorRadius | ( | double | minorRadius | ) |
Sets minor radius of this elliptical cone.
minorRadius | [in] The minor radius of this elliptical cone. |