|
@@ -44,7 +44,7 @@ THREE.TubeGeometry = function( path, segments, radius, radiusSegments, closed, d
|
|
|
a, b, c, d,
|
|
|
uva, uvb, uvc, uvd;
|
|
|
|
|
|
- var frames = new THREE.TubeGeometry.FrenetFrames(path, segments, closed),
|
|
|
+ var frames = new THREE.TubeGeometry.FrenetFrames(this.path, this.segments, this.closed),
|
|
|
tangents = frames.tangents,
|
|
|
normals = frames.normals,
|
|
|
binormals = frames.binormals;
|
|
@@ -107,7 +107,7 @@ THREE.TubeGeometry = function( path, segments, radius, radiusSegments, closed, d
|
|
|
|
|
|
for ( j = 0; j < this.radiusSegments; j++ ) {
|
|
|
|
|
|
- ip = ( closed ) ? (i + 1) % this.segments : i + 1;
|
|
|
+ ip = ( this.closed ) ? (i + 1) % this.segments : i + 1;
|
|
|
jp = (j + 1) % this.radiusSegments;
|
|
|
|
|
|
a = this.grid[ i ][ j ]; // *** NOT NECESSARILY PLANAR ! ***
|