@@ -366,12 +366,12 @@ CurveEval.prototype.colorBezier=function(controlPoints,u1,u2){
366366 * and texture coordinates will be the same as they were before the method
367367 * started.
368368 * @param {number } u Point of the curve to evaluate (for
369- * Bézier curve , generally within the range
369+ * Bézier curves , generally within the range
370370 * given in the <code>vectorBezier</code>, <code>normalBezier</code>,
371371 * <code>colorBezier</code>, and <code>texCoordBezier</code> methods).
372372 * @return {CurveEval } This object.
373373 */
374- CurveEval . prototype . evaluate = function ( mesh , u ) {
374+ CurveEval . prototype . evalOne = function ( mesh , u ) {
375375 var color = null ;
376376 var normal = null ;
377377 var texcoord = null ;
@@ -437,7 +437,7 @@ CurveEval.prototype.evalCurve=function(mesh,mode,n,u1,u2){
437437 mesh . mode ( Mesh . LINE_STRIP )
438438 else return this ;
439439 for ( var i = 0 ; i <= n ; i ++ ) {
440- this . evaluate ( mesh , u1 + i * uv ) ;
440+ this . evalOne ( mesh , u1 + i * uv ) ;
441441 }
442442 return this ;
443443}
@@ -595,7 +595,7 @@ SurfaceEval.prototype.colorBezier=function(controlPoints,u1,u2,v1,v2){
595595 * @param {number } v V-coordinate of the curve to evaluate.
596596 * @return {SurfaceEval } This object.
597597 */
598- SurfaceEval . prototype . evaluate = function ( mesh , u , v ) {
598+ SurfaceEval . prototype . evalOne = function ( mesh , u , v ) {
599599 var color = null ;
600600 var normal = null ;
601601 var texcoord = null ;
@@ -701,30 +701,30 @@ SurfaceEval.prototype.evalSurface=function(mesh,mode,un,vn,u1,u2,v1,v2){
701701 mesh . mode ( Mesh . TRIANGLE_STRIP ) ;
702702 for ( var j = 0 ; j <= un ; j ++ ) {
703703 var jx = j * du + u1 ;
704- this . evaluate ( mesh , jx , i * dv + v1 ) ;
705- this . evaluate ( mesh , jx , ( i + 1 ) * dv + v1 ) ;
704+ this . evalOne ( mesh , jx , i * dv + v1 ) ;
705+ this . evalOne ( mesh , jx , ( i + 1 ) * dv + v1 ) ;
706706 }
707707 }
708708 } else if ( mode == Mesh . POINTS ) {
709709 mesh . mode ( Mesh . POINTS ) ;
710710 for ( var i = 0 ; i <= vn ; i ++ ) {
711711 for ( var j = 0 ; j <= un ; j ++ ) {
712712 var jx = j * du + u1 ;
713- this . evaluate ( mesh , jx , i * dv + v1 ) ;
713+ this . evalOne ( mesh , jx , i * dv + v1 ) ;
714714 }
715715 }
716716 } else if ( mode == Mesh . LINES ) {
717717 for ( var i = 0 ; i <= vn ; i ++ ) {
718718 mesh . mode ( Mesh . LINE_STRIP ) ;
719719 for ( var j = 0 ; j <= un ; j ++ ) {
720720 var jx = j * du + u1 ;
721- this . evaluate ( mesh , jx , i * dv + v1 ) ;
721+ this . evalOne ( mesh , jx , i * dv + v1 ) ;
722722 }
723723 }
724724 for ( var i = 0 ; i <= un ; i ++ ) {
725725 mesh . mode ( Mesh . LINE_STRIP ) ;
726726 for ( var j = 0 ; j <= vn ; j ++ ) {
727- this . evaluate ( mesh , i * du + u1 , j * dv + v1 ) ;
727+ this . evalOne ( mesh , i * du + u1 , j * dv + v1 ) ;
728728 }
729729 }
730730 }
0 commit comments