Table of Contents

Class SphereProceduralModel

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

A sphere procedural.

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

Constructors

SphereProceduralModel()

Initializes a new instance of the SphereProceduralModel class.

public SphereProceduralModel()

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>