|
AnyCAD Rapid API 2026
Help you to create a better world!
|
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. 更多...
Public 成员函数 | |
| GSphere (global::System.IntPtr cPtr, bool cMemoryOwn) | |
| 仅供内部使用 | |
| void | Dispose () |
| GSphere () | |
| Creates an indefinite sphere. | |
| 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 | |
| void | SetLocation (GPnt theLoc) |
| Changes the center of the sphere. | |
| void | SetPosition (GAx3 theA3) |
| Changes the local coordinate system of the sphere. | |
| void | 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 | |
| double | Area () |
| Computes the area of the sphere. | |
| void | Coefficients (ref double theA1, ref double theA2, ref double theA3, ref double theB1, ref double theB2, ref double theB3, ref double theC1, ref double theC2, ref double theC3, ref double theD) |
| Computes the coefficients of the implicit equation of the quadric in the absolute cartesian coordinates system :<code> 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</code> | |
| void | UReverse () |
| Reverses the U parametrization of the sphere reversing the YAxis. | |
| void | VReverse () |
| Reverses the V parametrization of the sphere reversing the ZAxis. | |
| bool | Direct () |
| Returns true if the local coordinate system of this sphere is right-handed. | |
| GPnt | Location () |
| — Purpose ; Returns the center of the sphere. | |
| GAx3 | Position () |
| Returns the local coordinates system of the sphere. | |
| double | Radius () |
| Returns the radius of the sphere. | |
| double | Volume () |
| Computes the volume of the sphere | |
| GAx1 | XAxis () |
| Returns the axis X of the sphere. | |
| GAx1 | YAxis () |
| Returns the axis Y of the sphere. | |
| void | Mirror (GPnt theP) |
| GSphere | Mirrored (GPnt theP) |
| Performs the symmetrical transformation of a sphere with respect to the point theP which is the center of the symmetry. | |
| void | Mirror (GAx1 theA1) |
| GSphere | Mirrored (GAx1 theA1) |
| Performs the symmetrical transformation of a sphere with respect to an axis placement which is the axis of the symmetry. | |
| void | Mirror (GAx2 theA2) |
| 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). | |
| void | Rotate (GAx1 theA1, double theAng) |
| 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. | |
| void | Scale (GPnt theP, double theS) |
| 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 | |
| void | Transform (GTrsf theT) |
| GSphere | Transformed (GTrsf theT) |
| Transforms a sphere with the transformation theT from class Trsf. | |
| void | Translate (GVec theV) |
| GSphere | Translated (GVec theV) |
| Translates a sphere in the direction of the vector theV. The magnitude of the translation is the vector's magnitude. | |
| void | Translate (GPnt theP1, GPnt theP2) |
| GSphere | Translated (GPnt theP1, GPnt theP2) |
| Translates a sphere from the point theP1 to the point 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.