Sphere
Overview
Sphere is a class in Aspose.3D FOSS for .NET.
Inherits from: Primitive.
Parameterized sphere.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
WidthSegments | int | Read/Write | Gets or sets the number of longitudinal segments of the sphere |
HeightSegments | int | Read/Write | Gets or sets the number of latitudinal segments of the sphere |
PhiStart | double | Read/Write | Gets or sets the starting angle around the vertical axis in radians |
PhiLength | double | Read/Write | |
ThetaStart | double | Read/Write | Gets or sets the starting polar angle from the top pole in radians |
ThetaLength | double | Read/Write | |
Radius | double | Read/Write | Gets or sets the radius of the sphere |
Methods
| Signature | Description |
|---|---|
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 |