Table of Contents

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 GraphicsDevice

The graphics device.

radius float

The radius.

tessellation int

The tessellation.

uScale float
vScale float
toLeftHanded bool

if 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 float

The radius.

tessellation int

The tessellation.

uScale float
vScale float
toLeftHanded bool

if set to true vertices and indices will be transformed to left handed. Default is false.

Returns

GeometricMeshData<VertexPositionNormalTexture>

A Geodesic sphere.