Class GeometricPrimitive.GeoSphere
- Namespace
- Stride.Graphics.GeometricPrimitives
- Assembly
- Stride.Graphics.dll
A Geodesic sphere.
public static class GeometricPrimitive.GeoSphere
- Inheritance
-
GeometricPrimitive.GeoSphere
Methods
New(GraphicsDevice, float, int, float, float, bool)
Creates a Geodesic sphere.
public static GeometricPrimitive New(GraphicsDevice graphicsDevice, float radius = 0.5, int tessellation = 3, float uScale = 1, float vScale = 1, bool toLeftHanded = false)
Parameters
graphicsDeviceGraphicsDeviceThe graphics device.
radiusfloatThe radius.
tessellationintThe tessellation.
uScalefloatvScalefloattoLeftHandedboolif set to
truevertices and indices will be transformed to left handed. Default is false.
Returns
- GeometricPrimitive
A Geodesic sphere.
New(float, int, float, float, bool)
Creates a Geodesic sphere.
public static GeometricMeshData<VertexPositionNormalTexture> New(float radius = 0.5, int tessellation = 3, float uScale = 1, float vScale = 1, bool toLeftHanded = false)
Parameters
radiusfloatThe radius.
tessellationintThe tessellation.
uScalefloatvScalefloattoLeftHandedboolif set to
truevertices and indices will be transformed to left handed. Default is false.
Returns
- GeometricMeshData<VertexPositionNormalTexture>
A Geodesic sphere.