Click or drag to resize
Ab4d.SharpEngine logo

TrapezoidModelNode(Vector3, Vector2, Vector3, Vector2, Vector3, Vector3, Material, String) Constructor

Create a 3D trapezoid with custom-oriented top/bottom sides and specified material.

Namespace: Ab4d.SharpEngine.SceneNodes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public TrapezoidModelNode(
	Vector3 bottomCenterPosition,
	Vector2 bottomSize,
	Vector3 topCenterPosition,
	Vector2 topSize,
	Vector3 sizeXVector,
	Vector3 sizeYVector,
	Material material,
	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
Size of the top side of the trapezoid.
sizeXVector  Vector3
The 3D vector representing the direction of the X parameter in bottomSize and topSize.
sizeYVector  Vector3
The 3D vector representing the direction of the Y parameter in bottomSize and topSize.
material  Material
Mesh material.
name  String  (Optional)
Optional node name.
See Also