|
MeshFactoryCreatePlaneMesh Method |
CreatePlaneMesh creates a plane and returns a StandardMesh with filled vertices array and index array.
Namespace: Ab4d.SharpEngine.MeshesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax public static StandardMesh CreatePlaneMesh(
Vector3 centerPosition,
Vector3 planeNormal,
Vector3 planeHeightDirection,
float width,
float height,
int widthSegments = 1,
int heightSegments = 1,
string? name = null
)
Parameters
- centerPosition Vector3
- center position of the plane
- planeNormal Vector3
- Vector3 that is perpendicular to the plane
- planeHeightDirection Vector3
- Vector3 that defines the direction of the height
- width Single
- width of the plane
- height Single
- height of the plane
- widthSegments Int32 (Optional)
- number of segments in the width direction
- heightSegments Int32 (Optional)
- number of segments in the height direction
- name String (Optional)
- optional name for the mesh
Return Value
StandardMeshStandardMesh with filled vertices array and index array
See Also