function TextMesh(text, material, font, height, bevel, bevelThickness, bevelSize, size, curveSegments, extruded)
{
	Mesh.call(this, TextMesh.EMPTY_GEOMETRY, material);

	this.name = "text";
	this.type = "TextMesh";

	/**
	 * Font used to draw text.
	 *
	 * @property font
	 * @type {Font}
	 */
	this.font = font !== undefined ? font : null;

	/**
	 * Indicates if the text mesh has volume or not.
	 *
	 * @property extruded
	 * @type {boolean}
	 */
	this.extruded = extruded !== undefined ? extruded : true;

	/**
	 * Size of the text (depth).
	 *
	 * @property size
	 * @type {number}
	 */
	this.size = size !== undefined ? size : 1;

	/**
	 * Height of the text.
	 *
	 * @property height
	 * @type {number}
	 */
	this.height = height !== undefined ? height : 0.5;

	/**
	 * Number of segments that compose a curve in the font.
	 *
	 * @property curveSegments
	 * @type {number}
	 */
	this.curveSegments = curveSegments !== undefined ? curveSegments : 15;

	/**
	 * If true a bevel is added to the text.
	 *
	 * @property bevel
	 * @type {boolean}
	 */
	this.bevel = bevel !== undefined ? bevel : false;

	/**
	 * Bevel thickness.
	 *
	 * @property bevelThickness
	 * @type {number}
	 */
	this.bevelThickness = bevelThickness !== undefined ? bevelThickness : 0.1;

	/**
	 * Bevel size.
	 *
	 * @property bevelSize
	 * @type {number}
	 */
	this.bevelSize = bevelSize !== undefined ? bevelSize : 0.05;

	/**
	 * Text to be diplayed in the mesh.
	 *
	 * @property text
	 * @type {string}
	 */
	if (text !== undefined)
	{
		text = "text";
	}
	Object.defineProperties(this,
		{
			text:
		{
			get: function() {return text;},
			set: function(value)
			{
				if (text !== value)
				{
					text = value;
					this.updateGeometry();
				}
			}
		}
		});

	this.updateGeometry();
}
Special mesh type used to draw 3D text.

It receives a Font resource that is used to triangulate and extrude font data into a 3D mesh.

@class TextMesh
@module Meshes
@param {string} text Text to be draw
@param {Material} material Material used to shade the surface of the geometry
@param {Font} font Font
@param {number} height Text height
@param {boolean} bevel
@param {number} bevelThickness
@param {number} bevelSize
@param {number} size
@param {number} curveSegments
@param {boolean} extruded
@extends {Mesh}