 |
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: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntaxpublic 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
Remarks[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Meshes.MeshFactory.CreatePlaneMesh(System.Numerics.Vector3,System.Numerics.Vector3,System.Numerics.Vector3,System.Single,System.Single,System.Int32,System.Int32,System.String)"]
See Also