PlaneProceduralModel Class
Namespace: Stride.Rendering.ProceduralModelsAssembly: Stride.Rendering.dll
The geometric descriptor for a plane.
Derived from PlaneProceduralModel:
[DataContract("PlaneProceduralModel")]
[Display("Plane", null)]
public class PlaneProceduralModel : PrimitiveProceduralModelBase, IProceduralModel
Name | Description | |
---|---|---|
Constructors | ||
PlaneProceduralModel() | Initializes a new instance of geometric descriptor for a plane. |
|
Properties | ||
GenerateBackFace | Gets or sets value indicating if a back face should be added. |
|
Normal | Gets or sets the normal direction of the plane. |
|
Size | Gets or sets the size of the plane. |
|
Tessellation | Gets or sets the tessellation of the plane. |
|
Methods | ||
CreatePrimitiveMeshData() |
Constructors
PlaneProceduralModel()
Initializes a new instance of geometric descriptor for a plane.
public PlaneProceduralModel()
Properties
GenerateBackFace
Gets or sets value indicating if a back face should be added.
[DataMember(50)]
[Display("Back Face", null)]
public bool GenerateBackFace { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Normal
Gets or sets the normal direction of the plane.
[DataMember(40)]
[Display("Normal", null)]
public NormalDirection Normal { get; set; }
Property Value
Type | Description |
---|---|
NormalDirection |
Size
Gets or sets the size of the plane.
[DataMember(10)]
[Display("Size", null)]
public Vector2 Size { get; set; }
Property Value
Type | Description |
---|---|
Vector2 | The size x. |
Tessellation
Gets or sets the tessellation of the plane.
[DataMember(20)]
[Display("Tessellation", null)]
public Int2 Tessellation { get; set; }
Property Value
Type | Description |
---|---|
Int2 | The tessellation x. |
Methods
CreatePrimitiveMeshData()
protected override GeometricMeshData<VertexPositionNormalTexture> CreatePrimitiveMeshData()
Returns
Type | Description |
---|---|
GeometricMeshData<VertexPositionNormalTexture> |