Sphere

Overview

Sphere is a class in Aspose.3D FOSS for .NET. Inherits from: Primitive.

Parameterized sphere.

Properties

NameTypeAccessDescription
WidthSegmentsintRead/WriteGets or sets the number of longitudinal segments of the sphere
HeightSegmentsintRead/WriteGets or sets the number of latitudinal segments of the sphere
PhiStartdoubleRead/WriteGets or sets the starting angle around the vertical axis in radians
PhiLengthdoubleRead/Write
ThetaStartdoubleRead/WriteGets or sets the starting polar angle from the top pole in radians
ThetaLengthdoubleRead/Write
RadiusdoubleRead/WriteGets or sets the radius of the sphere

Methods

SignatureDescription
Sphere()Initializes a sphere with the given radius and default segments
Sphere(radius: double)
Sphere(radius: double, widthSegments: int, heightSegments: int)
Sphere(name: string, radius: double, widthSegments: int, heightSegments: int, phiStart: double, phiLength: double, thetaStart: double, thetaLength: double)
ToMesh()Convert current object to mesh
GetBoundingBox()Returns the axis-aligned bounding box that encloses the sphere
GetEntityRendererKey()Gets the key of the entity renderer registered in the renderer

See Also