Click or drag to resize
SbSphere Structure
Class for representing a sphere.

Represents a sphere in 3D. This is a lightweight datatype that is used for arguments or return values in the Open Inventor toolkit. See SoSphere for a database sphere (used for rendering, picking, etc.).

Namespace: OIV.Inventor
Assembly: OIV.Inventor.SbLinear (in OIV.Inventor.SbLinear.dll) Version: 2025.2.2.Release.6302728a59ca92a379363e9f70e77ea11c06379f
Syntax
public struct SbSphere

The SbSphere type exposes the following members.

Constructors
  NameDescription
Public methodSbSphere(SbVec3f, Single)
Constructor that takes a center and a radius.
Public methodSbSphere(SbVec3f, Single)
Constructor that takes a center and a radius.
Top
Methods
  NameDescription
Public methodCircumscribe(SbBox3f)
Adapt sphere to contain a given box.
Public methodCircumscribe(SbBox3f)
Adapt sphere to contain a given box.
Public methodEquals (Inherited from ValueType.)
Public methodGetCenter Obsolete.
Use Center property instead.
Public methodGetHashCode (Inherited from ValueType.)
Public methodGetRadius Obsolete.
Use Radius property instead.
Public methodGetType (Inherited from Object.)
Public methodIntersect(SbLine, SbVec3f)
Intersect line and sphere, returning true if there is an intersection. The line is treated as a ray.
Public methodIntersect(SbLine, SbVec3f)
Intersect line and sphere, returning true if there is an intersection. The line is treated as a ray.
Public methodIntersect(SbLine, SbVec3f, SbVec3f)
Intersect line and sphere, returning true if there is an intersection. The line is treated as a ray.
Public methodIntersect(SbLine, SbVec3f, SbVec3f)
Intersect line and sphere, returning true if there is an intersection. The line is treated as a ray.
Public methodSetCenter Obsolete.
Use Center property instead.
Public methodSetRadius Obsolete.
Use Radius property instead.
Public methodSetValue(SbVec3f, Single)
Change the center and radius.
Public methodSetValue(SbVec3f, Single)
Change the center and radius.
Public methodToString
Converts this SbSphere structure to a human readable string.
(Overrides ValueTypeToString.)
Top
Properties
  NameDescription
Public propertyCenter
Gets or sets the center of the sphere.
Public propertyRadius
Gets or sets the radius of the sphere.
Top
See Also