GeoSphereProceduralModel Class
Namespace: Stride.Rendering.ProceduralModelsAssembly: Stride.Rendering.dll
A sphere procedural model.
Derived from GeoSphereProceduralModel:
[DataContract("GeoSphereProceduralModel")]
[Display("GeoSphere", null)]
public class GeoSphereProceduralModel : PrimitiveProceduralModelBase, IProceduralModel
Name | Description | |
---|---|---|
Constructors | ||
GeoSphereProceduralModel() | Initializes a new instance of the GeoSphereProceduralModel class. |
|
Properties | ||
Radius | Gets or sets the radius of this sphere. |
|
Tessellation | Gets or sets the tessellation factor (default: 3.0) |
|
Methods | ||
CreatePrimitiveMeshData() |
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
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> |