AnyCAD Rapid SDK
2021
The Rapid CAD SDK

Public Member Functions  
synchronized void  delete () 
GCone ()  
GCone (GAx3 A3, double Ang, double Radius)  
void  SetAxis (GAx1 A1) 
void  SetLocation (GPnt Loc) 
void  SetPosition (GAx3 A3) 
void  SetRadius (double R) 
void  SetSemiAngle (double Ang) 
GPnt  Apex () 
void  UReverse () 
void  VReverse () 
boolean  Direct () 
GAx1  Axis () 
void  Coefficients (double[] A1, double[] A2, double[] A3, double[] B1, double[] B2, double[] B3, double[] C1, double[] C2, double[] C3, double[] D) 
GPnt  Location () 
GAx3  Position () 
double  RefRadius () 
double  SemiAngle () 
GAx1  XAxis () 
GAx1  YAxis () 
void  Mirror (GPnt P) 
GCone  Mirrored (GPnt P) 
void  Mirror (GAx1 A1) 
GCone  Mirrored (GAx1 A1) 
void  Mirror (GAx2 A2) 
GCone  Mirrored (GAx2 A2) 
void  Rotate (GAx1 A1, double Ang) 
GCone  Rotated (GAx1 A1, double Ang) 
void  Scale (GPnt P, double S) 
GCone  Scaled (GPnt P, double S) 
void  Transform (GTrsf T) 
GCone  Transformed (GTrsf T) 
void  Translate (GVec V) 
GCone  Translated (GVec V) 
void  Translate (GPnt P1, GPnt P2) 
GCone  Translated (GPnt P1, GPnt P2) 
Protected Member Functions  
GCone (long cPtr, boolean cMemoryOwn)  
void  finalize () 
Static Protected Member Functions  
static long  getCPtr (GCone obj) 
Protected Attributes  
transient boolean  swigCMemOwn 
Defines an infinite conical surface. A cone is defined by its halfangle (can be negative) 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 intersection of the cone with this reference plane is a circle of radius equal to the reference radius, if the halfangle is positive, the apex of the cone is on the negative side of the "main Axis" of the coordinate system. If the halfangle 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 (righthanded or lefthanded) 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
GCone.GCone  (  ) 
Creates an indefinite Cone.
GCone.GCone  (  GAx3  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 semiangle. Its absolute value is in range ]0, PI/2[. Radius is the radius of the circle in the reference plane of the cone. Raises ConstructionError * if Radius is lower than 0.0 * Abs(Ang) < Resolution from gp or Abs(Ang) >= (PI/2)  Resolution.
GPnt GCone.Apex  (  ) 
Computes the cone's top. The Apex of the cone is on the negative side of the symmetry axis of the cone.
GAx1 GCone.Axis  (  ) 
returns the symmetry axis of the cone.
void GCone.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
boolean GCone.Direct  (  ) 
Returns true if the local coordinate system of this cone is righthanded.
GPnt GCone.Location  (  ) 
returns the "Location" point of the cone.
Performs the symmetrical transformation of a cone with respect to the point P which is the center of the symmetry.
Performs the symmetrical transformation of a cone with respect to an axis placement which is the axis of the symmetry.
Performs the symmetrical transformation of a cone with respect to a plane. The axis placement A2 locates the plane of the of the symmetry : (Location, XDirection, YDirection).
GAx3 GCone.Position  (  ) 
Returns the local coordinates system of the cone.
double GCone.RefRadius  (  ) 
Returns the radius of the cone in the reference plane.
Rotates a cone. A1 is the axis of the rotation. Ang is the angular value of the rotation in radians.
Scales a cone. S is the scaling value. The absolute value of S is used to scale the cone
double GCone.SemiAngle  (  ) 
Returns the halfangle at the apex of this cone. Attention! Semiangle can be negative.
void GCone.SetAxis  (  GAx1  A1  ) 
Changes the symmetry axis of the cone. Raises ConstructionError the direction of A1 is parallel to the "XDirection" of the coordinate system of the cone.
void GCone.SetLocation  (  GPnt  Loc  ) 
Changes the location of the cone.
void GCone.SetPosition  (  GAx3  A3  ) 
Changes the local coordinate system of the cone. This coordinate system defines the reference plane of the cone.
void GCone.SetRadius  (  double  R  ) 
Changes the radius of the cone in the reference plane of the cone. Raised if R < 0.0
void GCone.SetSemiAngle  (  double  Ang  ) 
Changes the semiangle of the cone. Semiangle can be negative. Its absolute value Abs(Ang) is in range ]0,PI/2[. Raises ConstructionError if Abs(Ang) < Resolution from gp or Abs(Ang) >= PI/2  Resolution
Translates a cone in the direction of the vector V. The magnitude of the translation is the vector's magnitude.
void GCone.UReverse  (  ) 
Reverses the U parametrization of the cone reversing the YAxis.
void GCone.VReverse  (  ) 
Reverses the V parametrization of the cone reversing the ZAxis.
GAx1 GCone.XAxis  (  ) 
Returns the XAxis of the reference plane.
GAx1 GCone.YAxis  (  ) 
Returns the YAxis of the reference plane.