This commit is contained in:
Thomas FORGIONE 2015-06-22 17:53:10 +02:00
parent 0a4c5d279c
commit 5ba5f57261
1 changed files with 2 additions and 1 deletions

View File

@ -179,6 +179,7 @@ mesh.Vertex.prototype.toString = function() {
* Represent a 3D normal * Represent a 3D normal
* @constructor * @constructor
* @memberOf mesh * @memberOf mesh
* @augments mesh.Vertex
*/ */
mesh.Normal = function() { mesh.Normal = function() {
mesh.Vertex.apply(this, arguments); mesh.Vertex.apply(this, arguments);
@ -210,7 +211,7 @@ mesh.Normal.prototype.toList = function() {
* var normal = new mesh.Normal('vn 3.5 3.6 3.7'); * var normal = new mesh.Normal('vn 3.5 3.6 3.7');
* console.log(normal.toString()); // Prints vn 3.5 3.6 3.7 * console.log(normal.toString()); // Prints vn 3.5 3.6 3.7
*/ */
mesh.Normal.toString = function() { mesh.Normal.prototype.toString = function() {
var superObject = mesh.Vertex.prototype.toString.call(this); var superObject = mesh.Vertex.prototype.toString.call(this);
superObject.replace('v', 'vn'); superObject.replace('v', 'vn');
return superObject; return superObject;