AddSphere

Adds a spherical surface to the document.

Syntax

rhinoscriptsyntax.AddSphere ( center_or_plane, radius)

rhinoscript.surface.AddSphere ( center_or_plane, radius)

Parameters

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.

Returns

Guid

The identifier of the new object if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

radius = 2

center = rs.GetPoint("Center of sphere")

if center: rs.AddSphere(center, radius)

Also See

AddBox

AddCone

AddCylinder

AddTorus