.. role:: ts-api-decorator

#############
ConeGenerator
#############

.. js:module:: cee.utils
   :noindex:

.. container:: ts-api-section

   .. js:class:: ConeGenerator

      Helper class to tesselate a cone



.. container:: api-index-section

   .. rubric:: Constructors

   .. rst-class:: api-index-list-item api-kind-constructor api-parent-kind-class

   * :js:meth:`~cee.utils.ConeGenerator.constructor`



.. container:: api-index-section

   .. rubric:: Properties

   .. rst-class:: api-index-list-item api-kind-property api-parent-kind-class

   * :js:attr:`~cee.utils.ConeGenerator.m_indices`
   * :js:attr:`~cee.utils.ConeGenerator.m_vertices`



.. container:: api-index-section

   .. rubric:: Methods

   .. rst-class:: api-index-list-item api-kind-method api-parent-kind-class

   * :js:meth:`~cee.utils.ConeGenerator.fillVerticesIndices`
   * :js:meth:`~cee.utils.ConeGenerator.generate`
   * :js:meth:`~cee.utils.ConeGenerator.getIndices`
   * :js:meth:`~cee.utils.ConeGenerator.getVertices`
   * :js:meth:`~cee.utils.ConeGenerator.getVerticesNumber`
   * :js:meth:`~cee.utils.ConeGenerator.setOriginAndSize`





------------

Constructors
============

.. container:: ts-api-section

   .. js:function:: ConeGenerator.constructor()



      :rtype: ConeGenerator



Properties
==========

.. container:: ts-api-section

   .. js:attribute:: ConeGenerator.m_indices

      :type: [number]





.. container:: ts-api-section

   .. js:attribute:: ConeGenerator.m_vertices

      :type: [Vec3]





Methods
=======

.. rst-class:: ts-api-section

fillVerticesIndices
-------------------

.. js:method:: ConeGenerator.fillVerticesIndices( vertices, indices)

   :param vertices: The vertices in the format x,y,z,x,y,z,...
   :type vertices: Float32Array
   :param indices: The indices for the vertices
   :type indices: [number]


   Fills the members ``m_vertices`` and ``m_indices`` of this class.


   :rtype: void

.. rst-class:: ts-api-section

generate
--------

.. js:method:: ConeGenerator.generate()



   Generate the cone


   :rtype: void

.. rst-class:: ts-api-section

getIndices
----------

.. js:method:: ConeGenerator.getIndices()



   Get the indices of triangles needed to render the solid object


   :rtype: [number]

.. rst-class:: ts-api-section

getVertices
-----------

.. js:method:: ConeGenerator.getVertices()



   Get the vertices of the solid object as Vec3


   :rtype: [Vec3]

.. rst-class:: ts-api-section

getVerticesNumber
-----------------

.. js:method:: ConeGenerator.getVerticesNumber()



   Get the vertices of the solid object as a number array with <x,y,z,x,y,z,...>


   :rtype: [number]

.. rst-class:: ts-api-section

setOriginAndSize
----------------

.. js:method:: ConeGenerator.setOriginAndSize( origin, bottomRadius, height)

   :param origin: None
   :type origin: Vec3
   :param bottomRadius: None
   :type bottomRadius: number
   :param height: None
   :type height: number


   Specify the cone by giving origin (center of bottom circle) and the bottom radius + height


   :rtype: void

