.. role:: ts-api-decorator

######################
AbstractSolidGenerator
######################

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

.. container:: ts-api-section

   .. js:class:: AbstractSolidGenerator



.. container:: api-index-section

   .. rubric:: Constructors

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

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



.. container:: api-index-section

   .. rubric:: Properties

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

   * :js:attr:`~cee.utils.AbstractSolidGenerator.m_indices`
   * :js:attr:`~cee.utils.AbstractSolidGenerator.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.AbstractSolidGenerator.fillVerticesIndices`
   * :js:meth:`~cee.utils.AbstractSolidGenerator.generate`
   * :js:meth:`~cee.utils.AbstractSolidGenerator.getIndices`
   * :js:meth:`~cee.utils.AbstractSolidGenerator.getVertices`
   * :js:meth:`~cee.utils.AbstractSolidGenerator.getVerticesNumber`





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

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

.. container:: ts-api-section

   .. js:function:: AbstractSolidGenerator.constructor()



      :rtype: AbstractSolidGenerator



Properties
==========

.. container:: ts-api-section

   .. js:attribute:: AbstractSolidGenerator.m_indices

      :type: [number]





.. container:: ts-api-section

   .. js:attribute:: AbstractSolidGenerator.m_vertices

      :type: [Vec3]





Methods
=======

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

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

.. js:method:: AbstractSolidGenerator.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:: AbstractSolidGenerator.generate()



   The generate method generates the object by filling ``m_vertices`` and ``m_indices``.


   :rtype: void

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

getIndices
----------

.. js:method:: AbstractSolidGenerator.getIndices()



   Get the indices of triangles needed to render the solid object


   :rtype: [number]

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

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

.. js:method:: AbstractSolidGenerator.getVertices()



   Get the vertices of the solid object as Vec3


   :rtype: [Vec3]

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

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

.. js:method:: AbstractSolidGenerator.getVerticesNumber()



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


   :rtype: [number]

