T_Rhino_Geometry_Sphere - mcneel/rhinocommon-api-docs GitHub Wiki

Sphere Structure

Represents the plane and radius values of a sphere.

Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0

Syntax

C#

[SerializableAttribute]
public struct Sphere

VB

<SerializableAttribute>
Public Structure Sphere

The Sphere type exposes the following members.

Constructors

 

Name Description
Public method Sphere(Plane, Double) Initializes a new sphere given the plane of the equator circle and radius.
Public methodCode example Sphere(Point3d, Double) Initializes a new sphere given center point and radius.
  Back to Top

Properties

 

Name Description
Public property BoundingBox Gets the world aligned boundingbox for this Sphere. If the Sphere is Invalid, an empty box is returned.
Public property Center Gets or sets the center point of the sphere.
Public property Diameter Gets or sets the diameter for this sphere.
Public property EquitorialPlane Gets or sets the Equatorial plane for this sphere.
Public property IsValid Gets a value that indicates whether the sphere is valid.
Public property NorthPole Gets the point at the North Pole of the sphere. This is the parameterization singularity that can be obtained, at V value +Math.Pi/2.
Public property Radius Gets or sets the Radius for this sphere.
Public property SouthPole Gets the point at the South Pole of the sphere. This is the parameterization singularity that can be obtained, at V value -Math.Pi/2.
Public propertyStatic member Unset Gets a sphere with invalid members.
  Back to Top

Methods

 

Name Description
Public method ClosestParameter Finds the angle parameters on this sphere that are closest to a test point.
Public method ClosestPoint Returns point on sphere that is closest to given point.
Public method EpsilonEquals Check that all values in other are within epsilon of the values in this
Public method Equals Indicates whether this instance and a specified object are equal. (Inherited from ValueType.)
Public methodStatic member FitSphereToPoints Attempts to fit a sphere to a collection of points.
Public method GetHashCode Returns the hash code for this instance. (Inherited from ValueType.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method LatitudeDegrees Computes the parallel at a specific latitude angle. The angle is specified in degrees.
Public method LatitudeRadians Computes the parallel at a specific latitude angle. The angle is specified in radians.
Public method LongitudeDegrees Computes the meridian at a specific longitude angle. The angle is specified in degrees.
Public method LongitudeRadians Computes the meridian at a specific longitude angle. The angle is specified in radians.
Public method NormalAt Computes the normal at a specific angular location on the sphere.
Public method PointAt Evaluates the sphere at specific longitude and latitude angles.
Public method Rotate(Double, Vector3d) Rotates the sphere about the center point.
Public method Rotate(Double, Vector3d, Point3d) Rotates this sphere about a point and an axis.
Public method Rotate(Double, Double, Vector3d) Rotates this sphere about the center point.
Public method Rotate(Double, Double, Vector3d, Point3d) Rotates this sphere about a point and an axis.
Public method ToBrep Converts this sphere is it Brep representation
Public method ToNurbsSurface Converts this sphere to its NurbsSurface representation. This is synonymous with calling NurbsSurface.CreateFromSphere().
Public method ToRevSurface Converts this Sphere to a RevSurface representation. This is synonymous with calling RevSurface.CreateFromSphere().
Public method ToString Returns the fully qualified type name of this instance. (Inherited from ValueType.)
Public method Transform Transforms this sphere. Note that non-similarity preserving transformations cannot be applied to a sphere as that would result in an ellipsoid.
Public method Translate Moves this sphere along a motion vector.
  Back to Top

Version Information

Supported in: 6.0.16224.21491, 5D58w

See Also

Reference

Rhino.Geometry Namespace

⚠️ **GitHub.com Fallback** ⚠️