From 5ba5f572614022192b6dfd696f084ada57e3408c Mon Sep 17 00:00:00 2001 From: Thomas FORGIONE Date: Mon, 22 Jun 2015 17:53:10 +0200 Subject: [PATCH] Nice doc --- geo/Mesh.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/geo/Mesh.js b/geo/Mesh.js index c23cd3d..3dbdf0b 100644 --- a/geo/Mesh.js +++ b/geo/Mesh.js @@ -179,6 +179,7 @@ mesh.Vertex.prototype.toString = function() { * Represent a 3D normal * @constructor * @memberOf mesh + * @augments mesh.Vertex */ mesh.Normal = function() { 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'); * 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); superObject.replace('v', 'vn'); return superObject;