reckfellENGINE

SphereMesh

Class representing a spherical PrimitiveMesh.

On this page
class SphereMeshReckfellSharpInherits 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
# SphereMesh
C#
public SphereMesh();

Properties5

HeightProperty
# Height
C#
public float Height { get; set; }

Full height of the sphere.

IsHemisphereProperty
# IsHemisphere
C#
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
# RadialSegments
C#
public int RadialSegments { get; set; }

Number of radial segments on the sphere.

RadiusProperty
# Radius
C#
public float Radius { get; set; }

Radius of sphere.

RingsProperty
# Rings
C#
public int Rings { get; set; }

Number of segments along the height of the sphere.

Methods10

GetHeightfloat
# GetHeight
C#
public float GetHeight();
Returns float
GetIsHemispherebool
# GetIsHemisphere
C#
public bool GetIsHemisphere();
Returns bool
GetRadialSegmentsint
# GetRadialSegments
C#
public int GetRadialSegments();
Returns int
GetRadiusfloat
# GetRadius
C#
public float GetRadius();
Returns float
GetRingsint
# GetRings
C#
public int GetRings();
Returns int
SetHeightvoid
# SetHeight
C#
public void SetHeight(float height);
Parameters
NameTypeDefault
heightfloat—
SetIsHemispherevoid
# SetIsHemisphere
C#
public void SetIsHemisphere(bool isHemisphere);
Parameters
NameTypeDefault
isHemispherebool—
SetRadialSegmentsvoid
# SetRadialSegments
C#
public void SetRadialSegments(int radialSegments);
Parameters
NameTypeDefault
radialSegmentsint—
SetRadiusvoid
# SetRadius
C#
public void SetRadius(float radius);
Parameters
NameTypeDefault
radiusfloat—
SetRingsvoid
# SetRings
C#
public void SetRings(int rings);
Parameters
NameTypeDefault
ringsint—
Reckfell Engine documentationBack to top ↑
QUICK LINKSGetting startedEntity hierarchyC# & .NET 10Scenes and prefabs
Reckfell guides and full API K
reckfellENGINE
RECKFELL ACCOUNT

Sign in

Sign in to your Reckfell account.

One account for the entire Reckfell platform.