SphereMesh
Class representing a spherical PrimitiveMesh.
Class representing a spherical PrimitiveMesh.
Class representing a spherical PrimitiveMesh.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
SphereMeshConstructor
public SphereMesh();Properties5
HeightProperty
public float Height { get; set; }Full height of the sphere.
IsHemisphereProperty
public bool IsHemisphere { get; set; }If true, a hemisphere is created rather than a full sphere.
Note: To get a regular hemisphere, the height and radius of the sphere must be equal.
RadialSegmentsProperty
public int RadialSegments { get; set; }Number of radial segments on the sphere.
RadiusProperty
public float Radius { get; set; }Radius of sphere.
RingsProperty
public int Rings { get; set; }Number of segments along the height of the sphere.
Methods10
GetHeightfloat
public float GetHeight();Returns
floatGetIsHemispherebool
public bool GetIsHemisphere();Returns
boolGetRadialSegmentsint
public int GetRadialSegments();Returns
intGetRadiusfloat
public float GetRadius();Returns
floatGetRingsint
public int GetRings();Returns
intSetHeightvoid
public void SetHeight(float height);| Name | Type | Default |
|---|---|---|
height | float | — |
SetIsHemispherevoid
public void SetIsHemisphere(bool isHemisphere);| Name | Type | Default |
|---|---|---|
isHemisphere | bool | — |
SetRadialSegmentsvoid
public void SetRadialSegments(int radialSegments);| Name | Type | Default |
|---|---|---|
radialSegments | int | — |
SetRadiusvoid
public void SetRadius(float radius);| Name | Type | Default |
|---|---|---|
radius | float | — |
SetRingsvoid
public void SetRings(int rings);| Name | Type | Default |
|---|---|---|
rings | int | — |
Reckfell Engine documentationBack to top ↑