Table of Contents

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

Vector2

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

size Vector2
uScale float
vScale float
toLeftHanded bool

Returns

GeometricMeshData<VertexPositionNormalTexture>

CreatePrimitiveMeshData()

protected override GeometricMeshData<VertexPositionNormalTexture> CreatePrimitiveMeshData()

Returns

GeometricMeshData<VertexPositionNormalTexture>

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)

Parameters

size Vector2
uScale float
vScale float
toLeftHanded bool

Returns

GeometricMeshData<VertexPositionNormalTexture>