Class PlaneProceduralModel
- Namespace
- Stride.Rendering.ProceduralModels
- Assembly
- Stride.Rendering.dll
The geometric descriptor for a plane.
[DataContract("PlaneProceduralModel")]
[Display("Plane", null)]
public class PlaneProceduralModel : PrimitiveProceduralModelBase, IProceduralModel
- Inheritance
-
PlaneProceduralModel
- Implements
- Inherited Members
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
Normal
Gets or sets the normal direction of the plane.
[DataMember(40)]
[Display("Normal", null)]
public NormalDirection Normal { get; set; }
Property Value
Size
Gets or sets the size of the plane.
[DataMember(10)]
[Display("Size", null)]
public Vector2 Size { get; set; }
Property Value
- 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
- Int2
The tessellation x.
Methods
CreatePrimitiveMeshData()
protected override GeometricMeshData<VertexPositionNormalTexture> CreatePrimitiveMeshData()