SphereProceduralModel Class
Namespace: Stride.Rendering.ProceduralModelsAssembly: Stride.Rendering.dll
A sphere procedural.
Derived from SphereProceduralModel:
[DataContract("SphereProceduralModel")]
[Display("Sphere", null)]
public class SphereProceduralModel : PrimitiveProceduralModelBase, IProceduralModel
Name | Description | |
---|---|---|
Constructors | ||
SphereProceduralModel() | Initializes a new instance of the SphereProceduralModel class. |
|
Properties | ||
Radius | Gets or sets the radius of this sphere. |
|
Tessellation | Gets or sets the tessellation factor (default: 3.0) |
|
Methods | ||
CreatePrimitiveMeshData() |
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
Type | Description |
---|---|
System.Single | The radius. |
Tessellation
Gets or sets the tessellation factor (default: 3.0)
[DataMember(20)]
public int Tessellation { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The tessellation. |
Methods
CreatePrimitiveMeshData()
protected override GeometricMeshData<VertexPositionNormalTexture> CreatePrimitiveMeshData()
Returns
Type | Description |
---|---|
GeometricMeshData<VertexPositionNormalTexture> |