Table of Contents

Class TriangularPrismProceduralModel

Namespace
Stride.CommunityToolkit.Rendering.ProceduralModels
Assembly
Stride.CommunityToolkit.dll

A triangular prism with a triangular face visible from the side.

public class TriangularPrismProceduralModel : PrimitiveProceduralModelBase, IProceduralModel
Inheritance
TriangularPrismProceduralModel
Implements
Inherited Members

Properties

Size

Overall size of the prism in X (triangle base width), Y (triangle height) and Z (depth).

public Vector3 Size { get; set; }

Property Value

Vector3

Methods

CreatePrimitiveMeshData()

Builds the mesh data for the current Size and UV scale settings.

protected override GeometricMeshData<VertexPositionNormalTexture> CreatePrimitiveMeshData()

Returns

GeometricMeshData<VertexPositionNormalTexture>

The generated geometric mesh data.

New(Vector3, float, float, bool)

Creates a triangular prism mesh.

public static GeometricMeshData<VertexPositionNormalTexture> New(Vector3 size, float uScale = 1, float vScale = 1, bool toLeftHanded = false)

Parameters

size Vector3

Overall size (X = base width, Y = triangle height, Z = depth).

uScale float

Optional U texture scale.

vScale float

Optional V texture scale.

toLeftHanded bool

If true, flips winding for left-handed coordinate systems.

Returns

GeometricMeshData<VertexPositionNormalTexture>

Generated mesh data for a triangular prism.