IKO_gp_Cone Interface
Properties of a cone. To create this type of a circle use a call similar to
iDIObjGenerator.Create3("KO_gp_Cone") where iDIObjGenerator has
IDIObjGenerator type.
The cone is defined by its half-angle at the apex and positioned in space with a
coordinate system (a gp_Ax3 object) and a "reference radius" where:
� the "main Axis" of the coordinate system is the axis of revolution of the cone,
� the plane defined by the origin, the "X Direction" and the "Y Direction" of the
coordinate system is the reference plane of the cone; the interentity of the
cone with this reference plane is a circle of radius equal to the reference
radius, if the half-angle is positive, the apex of the cone is on the negative
side of the "main Axis" of the coordinate system. If the half-angle is negative,
the apex is on the positive side. This coordinate system is the "local
coordinate system" of the cone. Note: when a gp_Cone cone is converted into a
Geom_ConicalSurface cone, some implicit properties of its local coordinate
system are used explicitly:
� its origin, "X Direction", "Y Direction" and "main
Direction" are used directly to define the parametric directions on the cone and
the origin of the parameters,
� its implicit orientation (right-handed or left-handed) gives the orientation (direct or indirect) of the
Geom_ConicalSurface cone. See Also gce_MakeCone which provides functions for
more complex cone constructions Geom_ConicalSurface which provides additional
functions for constructing cones and works, in particular, with the parametric
equations of cones gp_Ax3
Query IKO_gp_Object from this interface to
obtain or modify location and orientation of the plane
Query IKO_gp_Transformation to transform position and orientation
IKO_Standard_Object to create a copy or obtain type name
- Init
- SetRadius
- SetSemiAngle
- Apex
- Coefficients
- RefRadius
- SemiAngle
HRESULT Init(IKO_gp_Ax3* A3, double Ang, double Radius)
Creates an infinite conical surface. A3 locates the cone in the space and defines
the reference plane of the surface. Ang is the conical surface semi-angle
between 0 and PI/2 radians. Radius is the radius of the circle in the reference
plane of the cone. Raises ConstructionError . if Radius is lower than 0.0 . Ang
< Resolution from gp or Ang >= (PI/2) - Resolution.
HRESULT SetRadius(double R)
HRESULT SetSemiAngle(double Ang)
HRESULT Apex(DIPoint* P)
Returns the cone's top. The Apex of the cone is on the negative side of the
symmetry axis of the cone.
HRESULT Coefficients(double* A1, double* A2, double* A3, double* B1,
double* B2, double* B3, double* C1, double* C2, double* C3, double* D)
Computes the coefficients of the implicit equation of the quadric in the absolute
cartesian coordinates system : A1.X**2 + A2.Y**2 + A3.Z**2 + 2.(B1.X.Y + B2.X.Z
+ B3.Y.Z) + 2.(C1.X + C2.Y + C3.Z) + D = 0.0
HRESULT RefRadius(double* retVal)
Returns the radius of the cone in the reference plane
HRESULT SemiAngle(double* retVal)
Returns the half-angle at the apex of this cone
|