提交 0a719bab 编写于 作者: M Mr.doob

Merge remote-tracking branch 'gero3/patch-5' into dev

......@@ -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 ! ***
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册