Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Ablesons
three.js
提交
5e6e5bd2
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,发现更多精彩内容 >>
提交
5e6e5bd2
编写于
10月 15, 2017
作者:
M
Mr.doob
提交者:
GitHub
10月 15, 2017
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #12410 from WestLangley/dev-defaults
Box and Plane geometry: specify default values
上级
f275da1a
ea7e9a78
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
36 addition
and
29 deletion
+36
-29
docs/api/geometries/BoxBufferGeometry.html
docs/api/geometries/BoxBufferGeometry.html
+4
-4
docs/api/geometries/BoxGeometry.html
docs/api/geometries/BoxGeometry.html
+4
-4
docs/api/geometries/PlaneBufferGeometry.html
docs/api/geometries/PlaneBufferGeometry.html
+3
-3
docs/api/geometries/PlaneGeometry.html
docs/api/geometries/PlaneGeometry.html
+18
-18
src/geometries/BoxGeometry.js
src/geometries/BoxGeometry.js
+4
-0
src/geometries/PlaneGeometry.js
src/geometries/PlaneGeometry.js
+3
-0
未找到文件。
docs/api/geometries/BoxBufferGeometry.html
浏览文件 @
5e6e5bd2
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"utf-8"
/>
<meta
charset=
"utf-8"
/>
<base
href=
"../../"
/>
<script
src=
"list.js"
></script>
<script
src=
"page.js"
></script>
...
...
@@ -44,9 +44,9 @@
<h3>
[name]([page:Float width], [page:Float height], [page:Float depth], [page:Integer widthSegments], [page:Integer heightSegments], [page:Integer depthSegments])
</h3>
<div>
width — Width of the sides on the X axis.
<br
/>
height — Height of the sides on the Y axis.
<br
/>
depth — Depth of the sides on the Z axis.
<br
/>
width — Width of the sides on the X axis.
Default is 1.
<br
/>
height — Height of the sides on the Y axis.
Default is 1.
<br
/>
depth — Depth of the sides on the Z axis.
Default is 1.
<br
/>
widthSegments — Optional. Number of segmented faces along the width of the sides. Default is 1.
<br
/>
heightSegments — Optional. Number of segmented faces along the height of the sides. Default is 1.
<br
/>
depthSegments — Optional. Number of segmented faces along the depth of the sides. Default is 1.
...
...
docs/api/geometries/BoxGeometry.html
浏览文件 @
5e6e5bd2
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"utf-8"
/>
<meta
charset=
"utf-8"
/>
<base
href=
"../../"
/>
<script
src=
"list.js"
></script>
<script
src=
"page.js"
></script>
...
...
@@ -44,9 +44,9 @@
<h3>
[name]([page:Float width], [page:Float height], [page:Float depth], [page:Integer widthSegments], [page:Integer heightSegments], [page:Integer depthSegments])
</h3>
<div>
width — Width of the sides on the X axis.
<br
/>
height — Height of the sides on the Y axis.
<br
/>
depth — Depth of the sides on the Z axis.
<br
/>
width — Width of the sides on the X axis.
Default is 1.
<br
/>
height — Height of the sides on the Y axis.
Default is 1.
<br
/>
depth — Depth of the sides on the Z axis.
Default is 1.
<br
/>
widthSegments — Optional. Number of segmented faces along the width of the sides. Default is 1.
<br
/>
heightSegments — Optional. Number of segmented faces along the height of the sides. Default is 1.
<br
/>
depthSegments — Optional. Number of segmented faces along the depth of the sides. Default is 1.
...
...
docs/api/geometries/PlaneBufferGeometry.html
浏览文件 @
5e6e5bd2
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"utf-8"
/>
<meta
charset=
"utf-8"
/>
<base
href=
"../../"
/>
<script
src=
"list.js"
></script>
<script
src=
"page.js"
></script>
...
...
@@ -44,8 +44,8 @@
<h3>
[name]([page:Float width], [page:Float height], [page:Integer widthSegments], [page:Integer heightSegments])
</h3>
<div>
width — Width along the X axis.
<br
/>
height — Height along the Y axis.
<br
/>
width — Width along the X axis.
Default is 1.
<br
/>
height — Height along the Y axis.
Default is 1.
<br
/>
widthSegments — Optional. Default is 1.
<br
/>
heightSegments — Optional. Default is 1.
</div>
...
...
docs/api/geometries/PlaneGeometry.html
浏览文件 @
5e6e5bd2
...
...
@@ -15,22 +15,22 @@
<div
class=
"desc"
>
A class for generating plane geometries
</div>
<iframe
id=
"scene"
src=
"scenes/geometry-browser.html#PlaneGeometry"
></iframe>
<script>
// iOS iframe auto-resize workaround
if
(
/
(
iPad|iPhone|iPod
)
/g
.
test
(
navigator
.
userAgent
)
)
{
var
scene
=
document
.
getElementById
(
'
scene
'
);
scene
.
style
.
width
=
getComputedStyle
(
scene
).
width
;
scene
.
style
.
height
=
getComputedStyle
(
scene
).
height
;
scene
.
setAttribute
(
'
scrolling
'
,
'
no
'
);
}
</script>
<script>
// iOS iframe auto-resize workaround
if
(
/
(
iPad|iPhone|iPod
)
/g
.
test
(
navigator
.
userAgent
)
)
{
var
scene
=
document
.
getElementById
(
'
scene
'
);
scene
.
style
.
width
=
getComputedStyle
(
scene
).
width
;
scene
.
style
.
height
=
getComputedStyle
(
scene
).
height
;
scene
.
setAttribute
(
'
scrolling
'
,
'
no
'
);
}
</script>
<h2>
Example
</h2>
...
...
@@ -44,8 +44,8 @@
<h3>
[name]([page:Float width], [page:Float height], [page:Integer widthSegments], [page:Integer heightSegments])
</h3>
<div>
width — Width along the X axis.
<br
/>
height — Height along the Y axis.
<br
/>
width — Width along the X axis.
Default is 1.
<br
/>
height — Height along the Y axis.
Default is 1.
<br
/>
widthSegments — Optional. Default is 1.
<br
/>
heightSegments — Optional. Default is 1.
</div>
...
...
src/geometries/BoxGeometry.js
浏览文件 @
5e6e5bd2
...
...
@@ -52,6 +52,10 @@ function BoxBufferGeometry( width, height, depth, widthSegments, heightSegments,
var
scope
=
this
;
width
=
width
||
1
;
height
=
height
||
1
;
depth
=
depth
||
1
;
// segments
widthSegments
=
Math
.
floor
(
widthSegments
)
||
1
;
...
...
src/geometries/PlaneGeometry.js
浏览文件 @
5e6e5bd2
...
...
@@ -45,6 +45,9 @@ function PlaneBufferGeometry( width, height, widthSegments, heightSegments ) {
heightSegments
:
heightSegments
};
width
=
width
||
1
;
height
=
height
||
1
;
var
width_half
=
width
/
2
;
var
height_half
=
height
/
2
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录