AnyCAD Rapid API 2023
Help you to create a better world!
载入中...
搜索中...
未找到
GSphere类 参考

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() [1/2]

GSphere.GSphere ( )

Creates an indefinite sphere.

◆ GSphere() [2/2]

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

成员函数说明

◆ Area()

double GSphere.Area ( )

Computes the area of the sphere.

◆ Coefficients()

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

◆ Direct()

boolean GSphere.Direct ( )

Returns true if the local coordinate system of this sphere is right-handed.

◆ Location()

GPnt GSphere.Location ( )

— Purpose ; Returns the center of the sphere.

◆ Mirrored() [1/3]

GSphere GSphere.Mirrored ( GAx1  theA1)

Performs the symmetrical transformation of a sphere with respect to an axis placement which is the axis of the symmetry.

◆ Mirrored() [2/3]

GSphere GSphere.Mirrored ( GAx2  theA2)

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).

◆ Mirrored() [3/3]

GSphere GSphere.Mirrored ( GPnt  theP)

Performs the symmetrical transformation of a sphere with respect to the point theP which is the center of the symmetry.

◆ Position()

GAx3 GSphere.Position ( )

Returns the local coordinates system of the sphere.

◆ Radius()

double GSphere.Radius ( )

Returns the radius of the sphere.

◆ Rotated()

GSphere GSphere.Rotated ( GAx1  theA1,
double  theAng 
)

Rotates a sphere. theA1 is the axis of the rotation. theAng is the angular value of the rotation in radians.

◆ Scaled()

GSphere GSphere.Scaled ( GPnt  theP,
double  theS 
)

Scales a sphere. theS is the scaling value. The absolute value of S is used to scale the sphere

◆ SetLocation()

void GSphere.SetLocation ( GPnt  theLoc)

Changes the center of the sphere.

◆ SetPosition()

void GSphere.SetPosition ( GAx3  theA3)

Changes the local coordinate system of the sphere.

◆ SetRadius()

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

◆ Transformed()

GSphere GSphere.Transformed ( GTrsf  theT)

Transforms a sphere with the transformation theT from class Trsf.

◆ Translated() [1/2]

GSphere GSphere.Translated ( GPnt  theP1,
GPnt  theP2 
)

Translates a sphere from the point theP1 to the point theP2.

◆ Translated() [2/2]

GSphere GSphere.Translated ( GVec  theV)

Translates a sphere in the direction of the vector theV. The magnitude of the translation is the vector's magnitude.

◆ UReverse()

void GSphere.UReverse ( )

Reverses the U parametrization of the sphere reversing the YAxis.

◆ Volume()

double GSphere.Volume ( )

Computes the volume of the sphere

◆ VReverse()

void GSphere.VReverse ( )

Reverses the V parametrization of the sphere reversing the ZAxis.

◆ XAxis()

GAx1 GSphere.XAxis ( )

Returns the axis X of the sphere.

◆ YAxis()

GAx1 GSphere.YAxis ( )

Returns the axis Y of the sphere.