Click or drag to resize
Ab4d.SharpEngine logo

MeshFactoryCreateTrapezoidMesh(Vector3, Vector2, Vector3, Vector2, String) Method

Create an upright trapezoid mesh.

Namespace: Ab4d.SharpEngine.Meshes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.2.9386+3a404a3e1ebfa4efd231da7fe6f10dfb23b95dc4
Syntax
C#
public static StandardMesh CreateTrapezoidMesh(
	Vector3 bottomCenterPosition,
	Vector2 bottomSize,
	Vector3 topCenterPosition,
	Vector2 topSize,
	string? name = null
)

Parameters

bottomCenterPosition  Vector3
Position of the bottom-center point.
bottomSize  Vector2
Size of the bottom side of the trapezoid.
topCenterPosition  Vector3
Position of the top-center point.
topSize  Vector2
Sie of the top side of the trapezoid.
name  String  (Optional)
Mesh name (for debug purposes).

Return Value

StandardMesh
StandardMesh with filled vertices array and index array.
Remarks

[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Meshes.MeshFactory.CreateTrapezoidMesh(System.Numerics.Vector3,System.Numerics.Vector2,System.Numerics.Vector3,System.Numerics.Vector2,System.String)"]

See Also