Adds a spherical surface to the document.
rhinoscriptsyntax.AddSphere ( center_or_plane, radius)
rhinoscript.surface.AddSphere ( center_or_plane, radius)
center_or_plane |
Required. List of 3 numbers, Vector3d, or Point3d. The center point of the sphere. If a plane is input, the origin of the plane will be the center of the sphere. |
radius |
Required. Number. The radius of the sphere in current model units. |
Guid |
The identifier of the new object if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
radius = 2
center = rs.GetPoint("Center of sphere")
if center: rs.AddSphere(center, radius)
AddBox
AddCone
AddCylinder