 |
MeshFactoryCreateTrapezoidMesh(Vector3, Vector2, Vector3, Vector2, Vector3, Vector3, String) Method |
Create a trapezoid mesh with custom base vectors.
Namespace: Ab4d.SharpEngine.MeshesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntaxpublic static StandardMesh CreateTrapezoidMesh(
Vector3 bottomCenterPosition,
Vector2 bottomSize,
Vector3 topCenterPosition,
Vector2 topSize,
Vector3 sizeXVector,
Vector3 sizeYVector,
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.
- sizeXVector Vector3
- The 3D vector representing the direction of the X parameter in bottomSize and topSize. For an upright trapezoid, this should be (1, 0, 0).
- sizeYVector Vector3
- The 3D vector representing the direction of the Y parameter in bottomSize and topSize. For an upright trapezoid, this should be (0, 0, 1).
- name String (Optional)
- Mesh name (for debug purposes).
Return Value
StandardMeshStandardMesh 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.Numerics.Vector3,System.Numerics.Vector3,System.String)"]
See Also