Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Ablesons
three.js
提交
a5a4d7f5
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,发现更多精彩内容 >>
提交
a5a4d7f5
编写于
12月 03, 2019
作者:
D
Don McCurdy
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
GeometryUtils: Remove .merge() and .center().
上级
88abe877
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
0 addition
and
57 deletion
+0
-57
examples/js/utils/GeometryUtils.js
examples/js/utils/GeometryUtils.js
+0
-28
examples/jsm/utils/GeometryUtils.js
examples/jsm/utils/GeometryUtils.js
+0
-29
未找到文件。
examples/js/utils/GeometryUtils.js
浏览文件 @
a5a4d7f5
...
...
@@ -5,34 +5,6 @@
THREE
.
GeometryUtils
=
{
// Merge two geometries or geometry and geometry from object (using object's transform)
merge
:
function
(
geometry1
,
geometry2
,
materialIndexOffset
)
{
console
.
warn
(
'
THREE.GeometryUtils: .merge() has been moved to Geometry. Use geometry.merge( geometry2, matrix, materialIndexOffset ) instead.
'
);
var
matrix
;
if
(
geometry2
instanceof
THREE
.
Mesh
)
{
geometry2
.
matrixAutoUpdate
&&
geometry2
.
updateMatrix
();
matrix
=
geometry2
.
matrix
;
geometry2
=
geometry2
.
geometry
;
}
geometry1
.
merge
(
geometry2
,
matrix
,
materialIndexOffset
);
},
center
:
function
(
geometry
)
{
console
.
warn
(
'
THREE.GeometryUtils: .center() has been moved to Geometry. Use geometry.center() instead.
'
);
return
geometry
.
center
();
},
/**
* Generates 2D-Coordinates in a very fast way.
*
...
...
examples/jsm/utils/GeometryUtils.js
浏览文件 @
a5a4d7f5
...
...
@@ -4,40 +4,11 @@
*/
import
{
Mesh
,
Vector3
}
from
"
../../../build/three.module.js
"
;
var
GeometryUtils
=
{
// Merge two geometries or geometry and geometry from object (using object's transform)
merge
:
function
(
geometry1
,
geometry2
,
materialIndexOffset
)
{
console
.
warn
(
'
THREE.GeometryUtils: .merge() has been moved to Geometry. Use geometry.merge( geometry2, matrix, materialIndexOffset ) instead.
'
);
var
matrix
;
if
(
geometry2
instanceof
Mesh
)
{
geometry2
.
matrixAutoUpdate
&&
geometry2
.
updateMatrix
();
matrix
=
geometry2
.
matrix
;
geometry2
=
geometry2
.
geometry
;
}
geometry1
.
merge
(
geometry2
,
matrix
,
materialIndexOffset
);
},
center
:
function
(
geometry
)
{
console
.
warn
(
'
THREE.GeometryUtils: .center() has been moved to Geometry. Use geometry.center() instead.
'
);
return
geometry
.
center
();
},
/**
* Generates 2D-Coordinates in a very fast way.
*
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录