Skip to content

Commit

Permalink
Revert "translation for helpers and geometries."
Browse files Browse the repository at this point in the history
This reverts commit 74b5a15.
  • Loading branch information
gogoend committed Oct 12, 2018
1 parent 74b5a15 commit 1299eea
Show file tree
Hide file tree
Showing 53 changed files with 264 additions and 358 deletions.
2 changes: 1 addition & 1 deletion docs/api/zh/geometries/ParametricBufferGeometry.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<body>
[page:BufferGeometry] &rarr;

<h1>参数化缓冲几何体([name]</h1>
<h1>[name]</h1>

<p class="desc">Generate geometry representing a parametric surface.</p>

Expand Down
2 changes: 1 addition & 1 deletion docs/api/zh/geometries/ParametricGeometry.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<body>
[page:Geometry] &rarr;

<h1>参数化几何体([name]</h1>
<h1>[name]</h1>

<p class="desc">Generate geometry representing a parametric surface.</p>

Expand Down
50 changes: 25 additions & 25 deletions docs/api/zh/helpers/ArrowHelper.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
<body>
[page:Object3D] &rarr;

<h1>箭头辅助工具([name]</h1>
<h1>[name]</h1>

<p class="desc">一个用于将方向可视化的三维物体。</p>
<p class="desc">An 3D arrow object for visualizing directions.</p>


<h2>示例</h2>
<h2>Example</h2>

<div>[example:webgl_geometries WebGL / geometries]</div>
<div>[example:webgl_geometry_normals WebGL / geometry / normals]</div>
Expand All @@ -37,61 +37,61 @@ <h2>示例</h2>



<h2>构造器</h2>
<h2>Constructor</h2>


<h3>[name]([param:Vector3 dir], [param:Vector3 origin], [param:Number length], [param:Number hex], [param:Number headLength], [param:Number headWidth] )</h3>
<p>
[page:Vector3 dir] -- 起始方向,必须是一个单位向量。<br />
[page:Vector3 origin] -- 箭头起始点。<br />
[page:Number length] -- 箭头长度,默认值为*1*<br />
[page:Number hex] -- 箭头颜色,十六进制值,默认值为0xffff00。<br />
[page:Number headLength] -- 箭头头部的长度,默认值为0.2 * length<br />
[page:Number headWidth] -- 箭头头部的宽度,默认值为0.2 * headLength
[page:Vector3 dir] -- direction from origin. Must be a unit vector. <br />
[page:Vector3 origin] -- Point at which the arrow starts.<br />
[page:Number length] -- length of the arrow. Default is *1*.<br />
[page:Number hex] -- hexadecimal value to define color. Default is 0xffff00.<br />
[page:Number headLength] -- The length of the head of the arrow. Default is 0.2 * length.<br />
[page:Number headWidth] -- The length of the width of the arrow. Default is 0.2 * headLength.
</p>

<h2>属性</h2>
<p>请参阅其基类[page:Object3D]来查看共有属性。</p>
<h2>Properties</h2>
<p>See the base [page:Object3D] class for common properties.</p>


<h3>[property:Line line]</h3>
<p>包含arrowHelper中线的部分。</p>
<p>Contains the line part of the arrowHelper.</p>

<h3>[property:Mesh cone]</h3>
<p>包含arrowHelper中圆锥的部分。</p>
<p>Contains the cone part of the arrowHelper.</p>




<h2>方法</h2>
<p>请参阅其基类[page:Object3D]来查看共有方法。</p>
<h2>Methods</h2>
<p>See the base [page:Object3D] class for common methods.</p>



<h3>[method:null setColor]([param:Number hex])</h3>
<p>
hex -- 颜色值,以十六进制来进行表示。<br /><br />
hex -- The hexadecimal value of the color.<br /><br />

用于设置arrowHelper的颜色。
Sets the color of the arrowHelper.
</p>

<h3>[method:null setLength]([param:Number length], [param:Number headLength], [param:Number headWidth])</h3>
<p>
length -- 所需的arrowHelper的长度。<br />
headLength -- 箭头头部的长度。<br />
headWidth -- 箭头头部的宽度。<br /><br />
length -- The desired length.<br />
headLength -- The length of the head of the arrow.<br />
headWidth -- The length of the width of the arrow.<br /><br />

用于设置arrowhelper的长度。
Sets the length of the arrowhelper.
</p>

<h3>[method:null setDirection]([param:Vector3 dir])</h3>
<p>
dir -- 所需的arrowHelper的方向,必须是一个单位向量。<br /><br />
dir -- The desired direction. Must be a unit vector.<br /><br />

用于设置arrowhelper的方向。
Sets the direction of the arrowhelper.
</p>

<h2>源代码</h2>
<h2>Source</h2>

[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
</body>
Expand Down
23 changes: 11 additions & 12 deletions docs/api/zh/helpers/AxesHelper.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,13 @@
<body>
[page:LineSegments] &rarr;

<h1>轴辅助工具[name]</h1>
<h1>[name]</h1>

<p class="desc">
一个轴对象,以简单的方式使得三个轴能被看到。<br />
X轴为红色,Y轴为绿色,Z轴为蓝色。</p>
<p class="desc">An axis object to visualize the 3 axes in a simple way. <br />
The X axis is red. The Y axis is green. The Z axis is blue.</p>


<h2>示例</h2>
<h2>Example</h2>

<div>[example:webgl_geometries WebGL / geometries]</div>
<div>[example:webgl_geometries2 WebGL / geometries2]</div>
Expand All @@ -31,21 +30,21 @@ <h2>示例</h2>
scene.add( axesHelper );
</code>

<h2>构造器</h2>
<h2>Constructor</h2>


<h3>[name]( [param:Number size] )</h3>
<p>
[page:Number size] -- (可选)用于表示轴的线的尺寸,默认值为*1*
[page:Number size] -- (optional) size of the lines representing the axes. Default is *1*.
</p>

<h2>属性</h2>
<p>请参阅其基类[page:LineSegments]来查看共有属性。</p>
<h2>Properties</h2>
<p>See the base [page:LineSegments] class for common properties.</p>

<h2>方法</h2>
<p>请参阅其基类[page:LineSegments]来查看共有方法。</p>
<h2>Methods</h2>
<p>See the base [page:LineSegments] class for common methods.</p>

<h2>源代码</h2>
<h2>Source</h2>

[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
</body>
Expand Down
34 changes: 17 additions & 17 deletions docs/api/zh/helpers/Box3Helper.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
<body>
[page:LineSegments] &rarr;

<h1>Box3辅助工具([name]</h1>
<h1>[name]</h1>

<p class="desc">
一个能使得[page:Box3]能够被看到的辅助工具。
Helper object to visualize a [page:Box3].
</p>


<h2>示例</h2>
<h2>Example</h2>

<code>
var box = new THREE.Box3();
Expand All @@ -28,36 +28,36 @@ <h2>示例</h2>
</code>


<h2>构造器</h2>
<h2>Constructor</h2>


<h3>[name]( [param:Box3 box], [param:Color color] )</h3>
<p>
[page:Box3 box] -- 将要显示的Box3对象。<br />
[page:Color color] -- (可选) box的颜色,默认值为0xffff00。<br /><br />
创建一个用于表示所传入的Box3的线框盒子。
[page:Box3 box] -- the Box3 to show.<br />
[page:Color color] -- (optional) the box's color. Default is 0xffff00.<br /><br />

Creates a new wireframe box that represents the passed Box3.
</p>

<h2>属性</h2>
<p>请参阅其基类[page:LineSegments]来查看共有属性。</p>
<h2>Properties</h2>
<p>See the base [page:LineSegments] class for common properties.</p>

<h3>[property:Box3 box]</h3>
<p>将要被显示的Box3。</p>
<p>The Box3 being visualized.</p>


<h2>方法</h2>
<p>请参阅其基类[page:LineSegments]来查看共有方法。</p>
<h2>Methods</h2>
<p>See the base [page:LineSegments] class for common methods.</p>


<h3>[method:void updateMatrixWorld]( [param:Boolean force] )</h3>
<p>
它覆盖了其基类[page:Object3D]中的方法,所以
它还将更新线框盒子到[page:Box3Helper.box .box]
属性的范围。
This overrides the method in the base [page:Object3D] class so that it
also updates the wireframe box to the extent of the [page:Box3Helper.box .box]
property.
</p>

<h2>源代码</h2>
<h2>Source</h2>

[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
</body>
Expand Down
38 changes: 19 additions & 19 deletions docs/api/zh/helpers/BoxHelper.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@
<body>
[page:LineSegments] &rarr;

<h1>盒子辅助工具([name]</h1>
<h1>[name]</h1>

<p class="desc">
一个用于在对象周围显示沿世界轴对齐的定界框的辅助对象。
Helper object to show the world-axis-aligned bounding box around an object.

请注意,该对象必须具有[page:Geometry]或者[page:BufferGeometry]对象才能工作,
因此它不适用于[page:Sprite Sprites]
Note that the object must have a [page:Geometry] or [page:BufferGeometry] for this to work,
so it won't work with [page:Sprite Sprites].
</p>


<h2>示例</h2>
<h2>Example</h2>

<div>[example:webgl_helpers WebGL / helpers]</div>
<div>[example:webgl_loader_nrrd WebGL / loader / nrrd]</div>
Expand All @@ -35,39 +35,39 @@ <h2>示例</h2>
</code>


<h2>构造器</h2>
<h2>Constructor</h2>


<h3>[name]( [param:Object3D object], [param:Color color] )</h3>
<p>
[page:Object3D object] -- (可选)将要用于显示沿世界轴对其的定界框的object3D(三维物体)。<br />
[page:Color color] -- (可选)十六进制值,用于定义定界框的颜色,默认值为0xffff00。<br /><br />
[page:Object3D object] -- (optional) the object3D to show the world-axis-aligned boundingbox.<br />
[page:Color color] -- (optional) hexadecimal value that defines the box's color. Default is 0xffff00.<br /><br />

创建一个新的、包围着所传入的物体的线框盒子。在内部,它使用[page:Box3.setFromObject]来计算维度。
请注意,它包括所传入物体(对象)的任何子级。
Creates a new wireframe box that bounds the passed object. Internally this uses [page:Box3.setFromObject]
to calculate the dimensions. Note that this includes any children.
</p>

<h2>属性Properties</h2>
<p>请参阅其基类[page:LineSegments]来查看共有属性。</p>
<h2>Properties</h2>
<p>See the base [page:LineSegments] class for common properties.</p>


<h2>方法Methods</h2>
<p>请参阅其基类[page:LineSegments]来查看共有方法。</p>
<h2>Methods</h2>
<p>See the base [page:LineSegments] class for common methods.</p>

<h3>[method:null update]()</h3>
<p>
更新辅助工具中的几何体,以匹配该物体(包括其子级)的尺寸。
请参阅[page:Box3.setFromObject]
Updates the helper's geometry to match the dimensions
of the object, including any children. See [page:Box3.setFromObject].
</p>

<h3>[method:BoxHelper setFromObject]( [param:Object3D object] )</h3>
<p>
[page:Object3D object] - 将用于创建辅助工具的[page:Object3D]<br /><br />
[page:Object3D object] - [page:Object3D] to create the helper of.<br /><br />

更新所传入的物体的线框盒子。
Updates the wireframe box for the passed object.
</p>

<h2>源代码Source</h2>
<h2>Source</h2>

[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
</body>
Expand Down
37 changes: 18 additions & 19 deletions docs/api/zh/helpers/CameraHelper.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
<body>
[page:LineSegments] &rarr;

<h1>摄像机辅助工具([name]</h1>
<h1>[name]</h1>

<p class="desc">
它将会显示摄像机,包括摄像机的视锥体。<br />
它使用[page:LineSegments](线段)来显示摄像机视锥体。
This helps with visualizing what a camera contains in its frustum.<br />
It visualizes the frustum of a camera using a [page:LineSegments].
</p>

<h2>示例</h2>
<h2>Example</h2>

<div>[example:webgl_camera WebGL / camera]</div>
<div>[example:webgl_geometry_extrude_splines WebGL / extrude / splines]</div>
Expand All @@ -29,51 +29,50 @@ <h2>示例</h2>
</code>


<h2>构造器</h2>
<h2>Constructor</h2>


<h3>[name]( [param:Camera camera] )</h3>
<p>
[page:Camera camera] -- 将会被CameraHelper可视化的相机。<br /><br />
[page:Camera camera] -- The camera to visualize.<br /><br />

为特定的摄像机创建一个新的 [Name]
This create a new [Name] for the specified camera.
</p>



<h2>属性</h2>
<p>请参阅其基类[page:LineSegments]来查看共有属性。</p>
<h2>Properties</h2>
<p>See the base [page:LineSegments] class for common properties.</p>



<h3>[property:Camera camera]</h3>
<p>将会被可视化的摄像机。</p>
<p>The camera being visualized.</p>

<h3>[property:object pointMap]</h3>
<p>它包括了用于可视化相机的点。
This contains the points used to visualize the camera.</p>
<p>This contains the points used to visualize the camera.</p>

<h3>[property:object matrix]</h3>
<p>[page:Object3D.matrixWorld camera.matrixWorld]的引用。</p>
<p>Reference to the [page:Object3D.matrixWorld camera.matrixWorld].</p>

<h3>[property:object matrixAutoUpdate]</h3>
<p>
请参阅[page:Object3D.matrixAutoUpdate]。在这里将其设置为*false*,因为辅助工具使用的是
相机的[page:Object3D.matrixWorld matrixWorld]
See [page:Object3D.matrixAutoUpdate]. Set to *false* here as the helper is using the
camera's [page:Object3D.matrixWorld matrixWorld].
</p>





<h2>方法</h2>
<p>请参阅其基类[page:LineSegments]来查看共有方法。</p>
<h2>Methods</h2>
<p>See the base [page:LineSegments] class for common methods.</p>


<h3>[method:null update]()</h3>
<p>基于摄像机的projectionMatrix(投影矩阵)来更新辅助工具。</p>
<p>Updates the helper based on the projectionMatrix of the camera.</p>

<h2>源代码</h2>
<h2>Source</h2>

[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
</body>
Expand Down
Loading

0 comments on commit 1299eea

Please sign in to comment.