 |
MeshFactoryCreateSphereMesh Method |
CreateSphereMesh creates a sphere and returns StandardMesh with filled vertices array and index array.
Namespace: Ab4d.SharpEngine.MeshesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntaxpublic static StandardMesh CreateSphereMesh(
Vector3 centerPosition,
float radius,
int segments = 30,
string? name = null
)
Parameters
- centerPosition Vector3
- center of the sphere
- radius Single
- radius of the sphere
- segments Int32 (Optional)
- number of segments that define the sphere
- name String (Optional)
- optional name for the mesh
Return Value
StandardMeshStandardMesh with filled vertices array and index array
See Also