GeCone.h
This class represents right circular cones.
A right circular cone is defined by its
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:
Corresponding C++ library: TD_Ge
|
Name |
Description |
|
This is the overview for the OdGeCone constructor overload. |
|
Name |
Description |
|
Returns the apex of this cone. | |
|
Returns the axis of symmetry of this cone. | |
|
Returns the center of the base. | |
|
Returns the base radius of this cone. | |
|
Retrieves the starting and ending angles of this cone. | |
|
Retrieves the cosine and the sine of the angle between the generating line and the axis of symmetry. | |
|
Retrieves the cosine and the sine of the angle between the generating line and the axis of symmetry. | |
|
Retrieves the interval of the axis of symmetry. | |
|
Returns U parameter at the pole | |
|
Retrieves U parameter scale. | |
|
Returns the angle between the generating line and the axis of symmetry. | |
|
Returns the height of this cone corresponding to the specified position on the U-axis. | |
|
Checks if this cone intersects with a line entity, and returns the number of intersections and the points of intersection. | |
|
Checks if the base of this cone is a full circle within the specified tolerance. | |
|
Checks if the normal to this cone is pointing outward. | |
|
Returns the reference axis of this cone. | |
|
This is the overview for the set method overload. | |
|
Sets the starting and ending angles of this cone. | |
|
Sets the base radius of this cone. | |
|
Sets the height interval of this cone. | |
|
Sets U parameter scale according to the parameter. |
|
Name |
Description |
|
Assignment operator for the OdGeCone object. |
Copyright © 2002–2020. Open Design Alliance. All rights reserved.
|