Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Ablesons
three.js
提交
5608b30f
T
three.js
项目概览
Ablesons
/
three.js
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
three.js
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
5608b30f
编写于
5月 23, 2018
作者:
M
Mugen87
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ParametricGeometry: Remove return of surface equations
上级
644d350e
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
10 addition
and
10 deletion
+10
-10
examples/js/Cloth.js
examples/js/Cloth.js
+1
-1
examples/js/ParametricGeometries.js
examples/js/ParametricGeometries.js
+7
-7
examples/js/curves/NURBSSurface.js
examples/js/curves/NURBSSurface.js
+1
-1
examples/js/curves/NURBSUtils.js
examples/js/curves/NURBSUtils.js
+1
-1
未找到文件。
examples/js/Cloth.js
浏览文件 @
5608b30f
...
...
@@ -52,7 +52,7 @@ function plane( width, height ) {
var
y
=
(
v
+
0.5
)
*
height
;
var
z
=
0
;
return
target
.
set
(
x
,
y
,
z
);
target
.
set
(
x
,
y
,
z
);
};
...
...
examples/js/ParametricGeometries.js
浏览文件 @
5608b30f
...
...
@@ -28,7 +28,7 @@ THREE.ParametricGeometries = {
y
=
-
2
*
(
1
-
Math
.
cos
(
u
)
/
2
)
*
Math
.
sin
(
v
);
return
target
.
set
(
x
,
y
,
z
);
target
.
set
(
x
,
y
,
z
);
},
...
...
@@ -40,7 +40,7 @@ THREE.ParametricGeometries = {
var
y
=
0
;
var
z
=
v
*
height
;
return
target
.
set
(
x
,
y
,
z
);
target
.
set
(
x
,
y
,
z
);
};
...
...
@@ -61,7 +61,7 @@ THREE.ParametricGeometries = {
y
=
Math
.
sin
(
v
)
*
(
a
+
u
*
Math
.
cos
(
v
/
2
)
);
z
=
u
*
Math
.
sin
(
v
/
2
);
return
target
.
set
(
x
,
y
,
z
);
target
.
set
(
x
,
y
,
z
);
},
...
...
@@ -83,7 +83,7 @@ THREE.ParametricGeometries = {
y
=
(
major
+
x
)
*
Math
.
sin
(
u
);
x
=
(
major
+
x
)
*
Math
.
cos
(
u
);
return
target
.
set
(
x
,
y
,
z
);
target
.
set
(
x
,
y
,
z
);
}
...
...
@@ -146,7 +146,7 @@ THREE.ParametricGeometries.TubeGeometry = function ( path, segments, radius, seg
pos
.
y
+=
cx
*
normal
.
y
+
cy
*
binormal
.
y
;
pos
.
z
+=
cx
*
normal
.
z
+
cy
*
binormal
.
z
;
return
target
.
copy
(
pos
);
target
.
copy
(
pos
);
};
...
...
@@ -225,7 +225,7 @@ THREE.ParametricGeometries.SphereGeometry = function ( size, u, v ) {
var
y
=
size
*
Math
.
sin
(
u
)
*
Math
.
sin
(
v
);
var
z
=
size
*
Math
.
cos
(
u
);
return
target
.
set
(
x
,
y
,
z
);
target
.
set
(
x
,
y
,
z
);
}
...
...
@@ -251,7 +251,7 @@ THREE.ParametricGeometries.PlaneGeometry = function ( width, depth, segmentsWidt
var
y
=
0
;
var
z
=
v
*
depth
;
return
target
.
set
(
x
,
y
,
z
);
target
.
set
(
x
,
y
,
z
);
}
...
...
examples/js/curves/NURBSSurface.js
浏览文件 @
5608b30f
...
...
@@ -47,7 +47,7 @@ THREE.NURBSSurface.prototype = {
var
u
=
this
.
knots1
[
0
]
+
t1
*
(
this
.
knots1
[
this
.
knots1
.
length
-
1
]
-
this
.
knots1
[
0
]
);
// linear mapping t1->u
var
v
=
this
.
knots2
[
0
]
+
t2
*
(
this
.
knots2
[
this
.
knots2
.
length
-
1
]
-
this
.
knots2
[
0
]
);
// linear mapping t2->u
return
THREE
.
NURBSUtils
.
calcSurfacePoint
(
this
.
degree1
,
this
.
degree2
,
this
.
knots1
,
this
.
knots2
,
this
.
controlPoints
,
u
,
v
,
target
);
THREE
.
NURBSUtils
.
calcSurfacePoint
(
this
.
degree1
,
this
.
degree2
,
this
.
knots1
,
this
.
knots2
,
this
.
controlPoints
,
u
,
v
,
target
);
}
};
examples/js/curves/NURBSUtils.js
浏览文件 @
5608b30f
...
...
@@ -462,7 +462,7 @@ THREE.NURBSUtils = {
}
Sw
.
divideScalar
(
Sw
.
w
);
return
target
.
set
(
Sw
.
x
,
Sw
.
y
,
Sw
.
z
);
target
.
set
(
Sw
.
x
,
Sw
.
y
,
Sw
.
z
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录