Table of Contents

Class GeometricPrimitive.Disc

Namespace
Stride.Graphics.GeometricPrimitives
Assembly
Stride.Graphics.dll

A disc - a circular base, or a circular sector.

public static class GeometricPrimitive.Disc
Inheritance
GeometricPrimitive.Disc

Methods

New(GraphicsDevice, float, float, int, float, float, bool)

Creates a disc.

public static GeometricPrimitive New(GraphicsDevice device, float radius = 0.5, float angle = 6.2831855, int tessellation = 16, float uScale = 1, float vScale = 1, bool toLeftHanded = false)

Parameters

device GraphicsDevice

The device.

radius float

The radius of the base

angle float

The angle of the circular sector

tessellation int

The number of segments composing the base

uScale float

Scale U coordinates between 0 and the values of this parameter.

vScale float

Scale V coordinates 0 and the values of this parameter.

toLeftHanded bool

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

Returns

GeometricPrimitive

A disc.

New(float, float, int, float, float, bool)

Creates a disc.

public static GeometricMeshData<VertexPositionNormalTexture> New(float radius = 0.5, float sectorAngle = 6.2831855, int tessellation = 16, float uScale = 1, float vScale = 1, bool toLeftHanded = false)

Parameters

radius float

The radius of the base

sectorAngle float

The angle of the circular sector

tessellation int

The number of segments composing the base

uScale float

Scale U coordinates between 0 and the values of this parameter.

vScale float

Scale V coordinates 0 and the values of this parameter.

toLeftHanded bool

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

Returns

GeometricMeshData<VertexPositionNormalTexture>

A cone.