AnyCAD Rapid SDK
2021
The Rapid CAD SDK

Public Member Functions  
synchronized void  delete () 
GSphere ()  
GSphere (GAx3 A3, double Radius)  
void  SetLocation (GPnt Loc) 
void  SetPosition (GAx3 A3) 
void  SetRadius (double R) 
double  Area () 
void  Coefficients (double[] A1, double[] A2, double[] A3, double[] B1, double[] B2, double[] B3, double[] C1, double[] C2, double[] C3, double[] D) 
void  UReverse () 
void  VReverse () 
boolean  Direct () 
GPnt  Location () 
GAx3  Position () 
double  Radius () 
double  Volume () 
GAx1  XAxis () 
GAx1  YAxis () 
void  Mirror (GPnt P) 
GSphere  Mirrored (GPnt P) 
void  Mirror (GAx1 A1) 
GSphere  Mirrored (GAx1 A1) 
void  Mirror (GAx2 A2) 
GSphere  Mirrored (GAx2 A2) 
void  Rotate (GAx1 A1, double Ang) 
GSphere  Rotated (GAx1 A1, double Ang) 
void  Scale (GPnt P, double S) 
GSphere  Scaled (GPnt P, double S) 
void  Transform (GTrsf T) 
GSphere  Transformed (GTrsf T) 
void  Translate (GVec V) 
GSphere  Translated (GVec V) 
void  Translate (GPnt P1, GPnt P2) 
GSphere  Translated (GPnt P1, GPnt P2) 
Protected Member Functions  
GSphere (long cPtr, boolean cMemoryOwn)  
void  finalize () 
Static Protected Member Functions  
static long  getCPtr (GSphere obj) 
Protected Attributes  
transient boolean  swigCMemOwn 
Describes a sphere. A sphere is defined by its radius and positioned in space with a coordinate system (a gp_Ax3 object). The origin of the coordinate system is the center of the sphere. This coordinate system is the "local coordinate system" of the sphere. Note: when a gp_Sphere sphere is converted into a Geom_SphericalSurface sphere, 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 sphere and the origin of the parameters,  its implicit orientation (righthanded or lefthanded) gives the orientation (direct, indirect) to the Geom_SphericalSurface sphere. See Also gce_MakeSphere which provides functions for more complex sphere constructions Geom_SphericalSurface which provides additional functions for constructing spheres and works, in particular, with the parametric equations of spheres.
GSphere.GSphere  (  ) 
Creates an indefinite sphere.
GSphere.GSphere  (  GAx3  A3, 
double  Radius  
) 
Constructs a sphere with radius Radius, centered on the origin of A3. A3 is the local coordinate system of the sphere. Warnings : It is not forbidden to create a sphere with null radius. Raises ConstructionError if Radius < 0.0
double GSphere.Area  (  ) 
Computes the aera of the sphere.
void GSphere.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 GSphere.Direct  (  ) 
Returns true if the local coordinate system of this sphere is righthanded.
GPnt GSphere.Location  (  ) 
— Purpose ; Returns the center of the sphere.
Performs the symmetrical transformation of a sphere with respect to the point P which is the center of the symmetry.
Performs the symmetrical transformation of a sphere with respect to an axis placement which is the axis of the symmetry.
Performs the symmetrical transformation of a sphere with respect to a plane. The axis placement A2 locates the plane of the of the symmetry : (Location, XDirection, YDirection).
GAx3 GSphere.Position  (  ) 
Returns the local coordinates system of the sphere.
double GSphere.Radius  (  ) 
Returns the radius of the sphere.
Rotates a sphere. A1 is the axis of the rotation. Ang is the angular value of the rotation in radians.
Scales a sphere. S is the scaling value. The absolute value of S is used to scale the sphere
void GSphere.SetLocation  (  GPnt  Loc  ) 
Changes the center of the sphere.
void GSphere.SetPosition  (  GAx3  A3  ) 
Changes the local coordinate system of the sphere.
void GSphere.SetRadius  (  double  R  ) 
Assigns R the radius of the Sphere. Warnings : It is not forbidden to create a sphere with null radius. Raises ConstructionError if R < 0.0
Transforms a sphere with the transformation T from class Trsf.
Translates a sphere in the direction of the vector V. The magnitude of the translation is the vector's magnitude.
Translates a sphere from the point P1 to the point P2.
void GSphere.UReverse  (  ) 
Reverses the U parametrization of the sphere reversing the YAxis.
double GSphere.Volume  (  ) 
Computes the volume of the sphere
void GSphere.VReverse  (  ) 
Reverses the V parametrization of the sphere reversing the ZAxis.
GAx1 GSphere.XAxis  (  ) 
Returns the axis X of the sphere.
GAx1 GSphere.YAxis  (  ) 
Returns the axis Y of the sphere.