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
GraphicsDeviceThe device.
radius
floatThe radius or the base
height
floatThe height of the cone
tessellation
intThe number of segments composing the base
uScale
floatScale U coordinates between 0 and the values of this parameter.
vScale
floatScale V coordinates 0 and the values of this parameter.
toLeftHanded
boolif 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
floatThe radius or the base
height
floatThe height of the cone
tessellation
intThe number of segments composing the base
uScale
floatScale U coordinates between 0 and the values of this parameter.
vScale
floatScale V coordinates 0 and the values of this parameter.
toLeftHanded
boolif set to
true
vertices and indices will be transformed to left handed. Default is false.