Class TriangleProceduralModel
- Namespace
- Stride.CommunityToolkit.Rendering.ProceduralModels
- Assembly
- Stride.CommunityToolkit.dll
Generates an isosceles triangle primitive in the XY plane.
public class TriangleProceduralModel : PrimitiveProceduralModelBase, IProceduralModel
- Inheritance
-
TriangleProceduralModel
- Implements
- Inherited Members
Properties
Size
Base size of the triangle in local space.
public Vector2 Size { get; set; }
Property Value
Methods
CreateMesh(Vector2, float, float, bool)
Builds a new triangle mesh (no caching).
public static GeometricMeshData<VertexPositionNormalTexture> CreateMesh(Vector2 size, float uScale = 1, float vScale = 1, bool toLeftHanded = false)
Parameters
Returns
CreatePrimitiveMeshData()
protected override GeometricMeshData<VertexPositionNormalTexture> CreatePrimitiveMeshData()
Returns
New(Vector2, float, float, bool)
Creates (or retrieves from cache) a triangle mesh of the given size and UV scale.
public static GeometricMeshData<VertexPositionNormalTexture> New(Vector2 size, float uScale = 1, float vScale = 1, bool toLeftHanded = false)