 |
MeshFactorySetSphereVerticesArray Method |
SetSphereVerticesArray fills the PositionNormalTextureVertex array with position, normal and texture coordinates for the sphere with specified parameters.
If the specified verticesArray is null or its Length is not correct, then a new array of PositionNormalTextureVertex is created.
The method also sets the boundingBox of the positions.
Namespace: Ab4d.SharpEngine.MeshesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntaxpublic static void SetSphereVerticesArray(
Vector3 centerPosition,
float radius,
int segments,
ref PositionNormalTextureVertex[]?? verticesArray,
out BoundingBox? boundingBox
)
Parameters
- centerPosition Vector3
- center of the sphere
- radius Single
- radius of the sphere
- segments Int32
- number of segments that define the sphere
- verticesArray PositionNormalTextureVertex
- array of PositionNormalTextureVertex items (by ref)
- boundingBox BoundingBox
- BoundingBox (out parameter)
Remarks[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Meshes.MeshFactory.SetSphereVerticesArray(System.Numerics.Vector3,System.Single,System.Int32,Ab4d.SharpEngine.Common.PositionNormalTextureVertex[]@,Ab4d.SharpEngine.Common.BoundingBox@)"]
See Also