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: 2024.2.2.Release.778f4cc64de03c89c1282c66aa1f73c0e9a1408b
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
Indicates whether this instance and a specified object are equal.
(Inherited from ValueType.)
Public methodGetCenter Obsolete.
Use Center property instead.
Public methodGetHashCode
Returns the hash code for this instance.
(Inherited from ValueType.)
Public methodGetRadius Obsolete.
Use Radius property instead.
Public methodGetType
Gets the Type of the current instance.
(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