Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Ablesons
three.js
提交
88c2c170
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,发现更多精彩内容 >>
提交
88c2c170
编写于
1月 19, 2012
作者:
A
alteredq
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Added docs for faces.
上级
f5c7ac49
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
138 addition
and
9 deletion
+138
-9
docs/api/core/Face3.rst
docs/api/core/Face3.rst
+66
-4
docs/api/core/Face4.rst
docs/api/core/Face4.rst
+72
-5
未找到文件。
docs/api/core/Face3.rst
浏览文件 @
88c2c170
Face3 - T
hree-sided
face
Face3 - T
riangle
face
------------------------
..
js:class:: Face3()
..
rubric:: Constructor
Three-sided face
\ No newline at end of file
.. class:: Face3( a, b, c, normal, color, materialIndex )
Triangle face
(indices start from zero)
:param integer a: vertex A index
:param integer b: vertex B index
:param integer c: vertex C index
:param varying normal: face normal or array of vertex normals
:param varying color: face color or array of vertex colors
:param integer materialIndex: material index
.. rubric:: Attributes
.. attribute:: Face3.a
Vertex A index
.. attribute:: Face3.b
Vertex B index
.. attribute:: Face3.c
Vertex C index
.. attribute:: Face3.normal
Face normal
``default (0,0,0)``
.. attribute:: Face3.color
Face color
``default white``
.. attribute:: Face3.centroid
Face centroid
.. attribute:: Face3.vertexNormals
Array of vertex normals
.. attribute:: Face3.vertexColors
Array of vertex colors
.. attribute:: Face3.vertexTangents
Array of vertex tangents
.. attribute:: Face3.materialIndex
Material index (points to ``geometry.materials`` array)
.. rubric:: Example
::
var face = new THREE.Face3( 0, 1, 2, new THREE.Vector3( 0, 1, 0 ), new THREE.Color( 0xffaa00 ), 0 );
\ No newline at end of file
docs/api/core/Face4.rst
浏览文件 @
88c2c170
Face4 -
Four-side
d face
-----------------------
Face4 -
Qua
d face
-----------------------
-
..
js:class:: Face4()
..
rubric:: Constructor
Four-sided face
\ No newline at end of file
.. class:: Face4( a, b, c, d, normal, color, materialIndex )
Quad face
(indices start from zero)
:param integer a: vertex index
:param integer b: vertex index
:param integer c: vertex index
:param integer d: vertex index
:param varying normal: face normal or array of vertex normals
:param varying color: face color or array of vertex colors
:param integer materialIndex: material index
.. rubric:: Attributes
.. attribute:: Face4.a
Vertex A index
.. attribute:: Face4.b
Vertex B index
.. attribute:: Face4.c
Vertex C index
.. attribute:: Face4.d
Vertex D index
.. attribute:: Face4.normal
Face normal
``default (0,0,0)``
.. attribute:: Face4.color
Face color
``default white``
.. attribute:: Face4.centroid
Face centroid
.. attribute:: Face4.vertexNormals
Array of vertex normals
.. attribute:: Face4.vertexColors
Array of vertex colors
.. attribute:: Face4.vertexTangents
Array of vertex tangents
.. attribute:: Face4.materialIndex
Material index (points to ``geometry.materials`` array)
.. rubric:: Example
::
var face = new THREE.Face4( 0, 1, 2, 3, new THREE.Vector3( 0, 1, 0 ), new THREE.Color( 0xffaa00 ), 0 );
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录