Table of Contents

Class GeoSphereProceduralModel

Namespace
Stride.Rendering.ProceduralModels
Assembly
Stride.Rendering.dll

A sphere procedural model.

[DataContract("GeoSphereProceduralModel")]
[Display("GeoSphere", null)]
public class GeoSphereProceduralModel : PrimitiveProceduralModelBase, IProceduralModel
Inheritance
GeoSphereProceduralModel
Implements
Inherited Members

Constructors

GeoSphereProceduralModel()

Initializes a new instance of the GeoSphereProceduralModel class.

public GeoSphereProceduralModel()

Properties

Radius

Gets or sets the radius of this sphere.

[DataMember(10)]
public float Radius { get; set; }

Property Value

float

The radius.

Tessellation

Gets or sets the tessellation factor (default: 3.0)

[DataMember(20)]
public int Tessellation { get; set; }

Property Value

int

The tessellation.

Methods

CreatePrimitiveMeshData()

protected override GeometricMeshData<VertexPositionNormalTexture> CreatePrimitiveMeshData()

Returns

GeometricMeshData<VertexPositionNormalTexture>