Table of Contents

Class GeometricPrimitive.Cone

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

A cone with a circular base and rolled face.

public static class GeometricPrimitive.Cone
Inheritance
GeometricPrimitive.Cone

Methods

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

Creates a cone a circular base and a rolled face.

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

Parameters

device GraphicsDevice

The device.

radius float

The radius or the base

height float

The height of the cone

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 cone.

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

Creates a cone a circular base and a rolled face.

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

Parameters

radius float

The radius or the base

height float

The height of the cone

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.