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
graphicsDevice
GraphicsDeviceThe graphics device.
radius
floatThe radius.
tessellation
intThe tessellation.
uScale
floatvScale
floattoLeftHanded
boolif set to
true
vertices 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
radius
floatThe radius.
tessellation
intThe tessellation.
uScale
floatvScale
floattoLeftHanded
boolif set to
true
vertices and indices will be transformed to left handed. Default is false.
Returns
- GeometricMeshData<VertexPositionNormalTexture>
A Geodesic sphere.