Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ConeGenerator

Helper class to tesselate a cone

Hierarchy

  • ConeGenerator

Index

Constructors

constructor

Methods

generate

  • generate(): void
  • Generate the cone

    Returns void

getIndices

  • getIndices(): number[]
  • Get the indices of triangles needed to render the box

    Returns number[]

getVertices

  • getVertices(): Vec3[]
  • Get the vertices as Vec3

    Returns Vec3[]

getVerticesNumber

  • getVerticesNumber(): number[]
  • Get the vertices of the box as a number array with <x,y,z,x,y,z,...>

    Returns number[]

setOriginAndSize

  • setOriginAndSize(origin: Vec3, bottomRadius: number, height: number): void
  • Specify the cone by giving origin (center of bottom circle) and the bottom radius + height

    Parameters

    • origin: Vec3
    • bottomRadius: number
    • height: number

    Returns void

Generated using TypeDoc