AnyCAD Rapid API 2023
Help you to create a better world!
|
Public 成员函数 | |
GSphere () | |
GSphere (GAx3 theA3, double theRadius) | |
void | SetLocation (GPnt theLoc) |
void | SetPosition (GAx3 theA3) |
void | SetRadius (double theR) |
double | Area () |
void | Coefficients (double[] theA1, double[] theA2, double[] theA3, double[] theB1, double[] theB2, double[] theB3, double[] theC1, double[] theC2, double[] theC3, double[] theD) |
void | UReverse () |
void | VReverse () |
boolean | Direct () |
GPnt | Location () |
GAx3 | Position () |
double | Radius () |
double | Volume () |
GAx1 | XAxis () |
GAx1 | YAxis () |
void | Mirror (GPnt theP) |
GSphere | Mirrored (GPnt theP) |
void | Mirror (GAx1 theA1) |
GSphere | Mirrored (GAx1 theA1) |
void | Mirror (GAx2 theA2) |
GSphere | Mirrored (GAx2 theA2) |
void | Rotate (GAx1 theA1, double theAng) |
GSphere | Rotated (GAx1 theA1, double theAng) |
void | Scale (GPnt theP, double theS) |
GSphere | Scaled (GPnt theP, double theS) |
void | Transform (GTrsf theT) |
GSphere | Transformed (GTrsf theT) |
void | Translate (GVec theV) |
GSphere | Translated (GVec theV) |
void | Translate (GPnt theP1, GPnt theP2) |
GSphere | Translated (GPnt theP1, GPnt theP2) |
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 (right-handed or left-handed) 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 | theA3, |
double | theRadius | ||
) |
Constructs a sphere with radius theRadius, centered on the origin of theA3. theA3 is the local coordinate system of the sphere. Warnings : It is not forbidden to create a sphere with null radius. Raises ConstructionError if theRadius < 0.0
double GSphere.Area | ( | ) |
Computes the area of the sphere.
void GSphere.Coefficients | ( | double[] | theA1, |
double[] | theA2, | ||
double[] | theA3, | ||
double[] | theB1, | ||
double[] | theB2, | ||
double[] | theB3, | ||
double[] | theC1, | ||
double[] | theC2, | ||
double[] | theC3, | ||
double[] | theD | ||
) |
Computes the coefficients of the implicit equation of the quadric in the absolute cartesian coordinates system : theA1.X**2 + theA2.Y**2 + theA3.Z**2 + 2.(theB1.X.Y + theB2.X.Z + theB3.Y.Z) + 2.(theC1.X + theC2.Y + theC3.Z) + theD = 0.0
boolean GSphere.Direct | ( | ) |
Returns true if the local coordinate system of this sphere is right-handed.
GPnt GSphere.Location | ( | ) |
— Purpose ; Returns the center of the sphere.
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 theA2 locates the plane of the of the symmetry : (Location, XDirection, YDirection).
Performs the symmetrical transformation of a sphere with respect to the point theP which is the center of the symmetry.
GAx3 GSphere.Position | ( | ) |
Returns the local coordinates system of the sphere.
double GSphere.Radius | ( | ) |
Returns the radius of the sphere.
Rotates a sphere. theA1 is the axis of the rotation. theAng is the angular value of the rotation in radians.
Scales a sphere. theS is the scaling value. The absolute value of S is used to scale the sphere
void GSphere.SetLocation | ( | GPnt | theLoc | ) |
Changes the center of the sphere.
void GSphere.SetPosition | ( | GAx3 | theA3 | ) |
Changes the local coordinate system of the sphere.
void GSphere.SetRadius | ( | double | theR | ) |
Assigns theR the radius of the Sphere. Warnings : It is not forbidden to create a sphere with null radius. Raises ConstructionError if theR < 0.0
Transforms a sphere with the transformation theT from class Trsf.
Translates a sphere from the point theP1 to the point theP2.
Translates a sphere in the direction of the vector theV. The magnitude of the translation is the vector's magnitude.
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.