Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
车家大少爷
three.js
提交
ebe52525
T
three.js
项目概览
车家大少爷
/
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,发现更多精彩内容 >>
未验证
提交
ebe52525
编写于
7月 09, 2019
作者:
M
Michael Herzog
提交者:
GitHub
7月 09, 2019
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #16994 from looeee/points_morph_docs
Updated Points docs and TS file
上级
f42c7f23
3b0a82d7
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
36 addition
and
0 deletion
+36
-0
docs/api/en/objects/Points.html
docs/api/en/objects/Points.html
+17
-0
docs/api/zh/objects/Points.html
docs/api/zh/objects/Points.html
+16
-0
src/objects/Points.d.ts
src/objects/Points.d.ts
+3
-0
未找到文件。
docs/api/en/objects/Points.html
浏览文件 @
ebe52525
...
...
@@ -54,6 +54,17 @@
Default is a [page:PointsMaterial] with a random color.
</p>
<h3>
[property:Array morphTargetInfluences]
</h3>
<p>
An array of weights typically from 0-1 that specify how much of the morph is applied.
Undefined by default, but reset to a blank array by [page:Points.updateMorphTargets updateMorphTargets].
</p>
<h3>
[property:Object morphTargetDictionary]
</h3>
<p>
A dictionary of morphTargets based on the morphTarget.name property.
Undefined by default, but rebuilt [page:Points.updateMorphTargets updateMorphTargets].
</p>
<h2>
Methods
</h2>
<p>
See the base [page:Object3D] class for common methods.
</p>
...
...
@@ -69,6 +80,12 @@
Returns a clone of this Points object and its descendants.
</p>
<h3>
[method:null updateMorphTargets]()
</h3>
<p>
Updates the morphTargets to have no influence on the object. Resets the
[page:Points.morphTargetInfluences morphTargetInfluences] and
[page:Points.morphTargetDictionary morphTargetDictionary] properties.
</p>
<h2>
Source
</h2>
...
...
docs/api/zh/objects/Points.html
浏览文件 @
ebe52525
...
...
@@ -50,6 +50,17 @@
[page:Material]的实例。定义了物体的外观。默认值是一个具有随机颜色的[page:PointsMaterial]。
</p>
<h3>
[property:Array morphTargetInfluences]
</h3>
<p>
一个包含有权重(值一般在0-1范围内)的数组,指定应用了多少变形。
默认情况下是未定义的,但是会被[page:Points.updateMorphTargets updateMorphTargets]重置为一个空数组。
</p>
<h3>
[property:Object morphTargetDictionary]
</h3>
<p>
基于morphTarget.name属性的morphTargets字典。
默认情况下是未定义的,但是会被[page:Points.updateMorphTargets updateMorphTargets]重建。
</p>
<h2>
方法
</h2>
<p>
请参阅其基类[page:Object3D]来查看共有方法。
</p>
...
...
@@ -65,6 +76,11 @@
返回这个点及其子集的一个克隆对象。
</p>
<h3>
[method:null updateMorphTargets]()
</h3>
<p>
更新morphTargets,使其不对对象产生影响,重置[page:Points.morphTargetInfluences morphTargetInfluences] and
[page:Points.morphTargetDictionary morphTargetDictionary]属性。
</p>
<h2>
源代码
</h2>
...
...
src/objects/Points.d.ts
浏览文件 @
ebe52525
...
...
@@ -22,6 +22,8 @@ export class Points extends Object3D {
);
type
:
'
Points
'
;
morphTargetInfluences
?:
number
[];
morphTargetDictionary
?:
{
[
key
:
string
]:
number
};
isPoints
:
true
;
/**
...
...
@@ -35,5 +37,6 @@ export class Points extends Object3D {
material
:
Material
|
Material
[];
raycast
(
raycaster
:
Raycaster
,
intersects
:
Intersection
[]
):
void
;
updateMorphTargets
():
void
;
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录