1 .. |Sphere_button.icon| image:: images/Sphere_button.png
6 Sphere feature creates a sphere solid or a part of a sphere solid.
8 To create a Sphere in the active part:
10 #. select in the Main Menu *Primitives - > Sphere* item or
11 #. click |Sphere_button.icon| **Sphere** button in the toolbar
13 There are 2 algorithms for creation of a Sphere
15 .. figure:: images/sphere_32x32.png
19 **By a center and a radius**
21 .. figure:: images/sphere_part_32x32.png
25 **By radii (inner and outer) and angle limits (theta and phi)**
27 --------------------------------------------------------------------------------
29 By a center and a radius
30 ------------------------
32 Sphere is created by a center (origin by default) and a radius.
34 .. figure:: images/Sphere_full.png
39 - **Point** defines the center of the sphere selected in 3D OCC viewer or object browser;
40 - **Radius** defines the radius.
44 .. py:function:: model.addSphere(Part_doc, Point, Radius)
46 :param part: The current part object.
47 :param object: Vertex.
49 :return: Result object.
54 A solid sphere based on the origin and a radius.
56 .. figure:: images/Sphere1.png
59 **See Also** a sample TUI Script of a :ref:`tui_create_sphere` operation.
61 By radii (inner and outer) and angle limits (theta and phi)
62 -----------------------------------------------------------
64 Part of sphere is created by radii (inner and outer) and angle limits (phi and theta).
66 .. figure:: images/Sphere_part.png
71 - **RMin** defines the inner radius;
72 - **RMax** defines the outer radius;
73 - **PhiMin** defines the lower phi limit;
74 - **PhiMax** defines the higher phi limit;
75 - **ThetaMin** defines the lower theta limit;
76 - **ThetaMax** defines the higher theta limit.
80 .. py:function:: model.addSphere(Part_doc, RMin, RMax, PhiMin, PhiMax, ThetaMin, ThetaMax)
82 :param part: The current part object.
83 :param real: Inner radius.
84 :param real: Outer radius.
85 :param real: Lower phi.
86 :param real: Hiher phi.
87 :param real: Lower theta.
88 :param real: Hiher theta.
89 :return: Result object.
94 A solid sphere based on the origin with radii (inner and outer) and angles (phi and theta).
96 .. figure:: images/Sphere2.png
99 **See Also** a sample TUI Script of a :ref:`tui_create_part_sphere` operation.