From 1f3207f15754e5af8df480b8cd5a5fe6b54f1ee9 Mon Sep 17 00:00:00 2001
From: Takahiro [property:String name]
Optional name for this bufferGeometry instance. Default is an empty string.
+ An object that can be used to store custom data about the BufferGeometry. It should not hold + references to functions as these will not be cloned. +
+[link:http://en.wikipedia.org/wiki/Universally_unique_identifier UUID] of this object instance. diff --git a/docs/api/core/Geometry.html b/docs/api/core/Geometry.html index 8abddb54bda309..47949f7f20c210 100644 --- a/docs/api/core/Geometry.html +++ b/docs/api/core/Geometry.html @@ -174,6 +174,12 @@
+ An object that can be used to store custom data about the Geometry. It should not hold + references to functions as these will not be cloned. +
+
[link:http://en.wikipedia.org/wiki/Universally_unique_identifier UUID] of this object instance.
From 38f4b7935780999979d7bef0a418a9b5dff596d8 Mon Sep 17 00:00:00 2001
From: Takahiro [property:String name]
Optional name for this bufferGeometry instance. Default is an empty string.
- An object that can be used to store custom data about the BufferGeometry. It should not hold - references to functions as these will not be cloned. -
-[link:http://en.wikipedia.org/wiki/Universally_unique_identifier UUID] of this object instance. diff --git a/docs/api/core/Geometry.html b/docs/api/core/Geometry.html index 47949f7f20c210..8abddb54bda309 100644 --- a/docs/api/core/Geometry.html +++ b/docs/api/core/Geometry.html @@ -174,12 +174,6 @@
- An object that can be used to store custom data about the Geometry. It should not hold - references to functions as these will not be cloned. -
-
[link:http://en.wikipedia.org/wiki/Universally_unique_identifier UUID] of this object instance.
From f5ab28e6d3aea4506198f16391dcc2f7a64c1ae6 Mon Sep 17 00:00:00 2001
From: Takahiro Example
var helper = new THREE.RectAreaLightHelper( light );
-scene.add( helper );
+light.add( helper ); // helper must be added as a child of the light
diff --git a/docs/api/en/lights/RectAreaLight.html b/docs/api/en/lights/RectAreaLight.html
index 4f188f540cc04c..b423250d024bcd 100644
--- a/docs/api/en/lights/RectAreaLight.html
+++ b/docs/api/en/lights/RectAreaLight.html
@@ -41,7 +41,7 @@ Examples
scene.add( rectLight )
rectLightHelper = new THREE.RectAreaLightHelper( rectLight );
-scene.add( rectLightHelper );
+rectLight.add( rectLightHelper );
BoxGeometry is the quadrilateral primitive geometry class. It is typically used for creating a cube or irregular quadrilateral of the dimensions provided with the 'width', 'height', and 'depth' constructor arguments.
- +BoxGeometry is a geometry class for a [link:https://en.wikipedia.org/wiki/Cuboid rectangular cuboid] with a given 'width', 'height', and 'depth'. The cuboid is centred on the origin, with each edge parallel to one of the axes.
+ -
var geometry = new THREE.ParametricBufferGeometry( THREE.ParametricGeometries.klein, 25, 25 );
@@ -42,7 +42,7 @@ Example
- - An object with a property for each of the constructor parameters. Any modification after instantiation does not change the geometry. + 一个包含着构造函数中每个参数的对象。在对象实例化之后,对该属性的任何修改都不会改变这个几何体。
-Generate geometry representing a parametric surface.
+生成由参数表示其表面的几何体。
@@ -32,7 +32,7 @@
var geometry = new THREE.ParametricGeometry( THREE.ParametricGeometries.klein, 25, 25 );
@@ -42,7 +42,7 @@ Example
- - An object with a property for each of the constructor parameters. Any modification after instantiation does not change the geometry. + 一个包含着构造函数中每个参数的对象。在对象实例化之后,对该属性的任何修改都不会改变这个几何体。
-- Class representing a 2D [link:https://en.wikipedia.org/wiki/Vector_space vector]. + 表示2D [link:https://en.wikipedia.org/wiki/Vector_space vector](二维向量)的类。 - A 2D vector is an ordered pair of numbers (labeled x and y), which can be used to - represent a number of things, such as: + 一个二维向量是一对有顺序的数字(标记为x和y),可被用于表示很多事物,例如:
- There are other things a 2D vector can be used to represent, such as momentum - vectors, complex numbers and so on, however these are the most common uses in three.js. + 其他的一些事物也可以使用二维向量进行表示,比如说动量矢量、复数等等;但以上这些是three.js中的常用用途。
-
var a = new THREE.Vector2( 0, 1 );
@@ -49,38 +46,39 @@ Example
-
- [page:Float x] - the x value of the vector. Default is *0*.
- [page:Float y] - the y value of the vector. Default is *0*.
+ [page:Float x] - 向量的x值,默认值为*0*。
+ [page:Float y] - 向量的y值,默认值为*0*。
- Creates a new [name].
+ 创建一个新的[name]。
- Used to check whether this or derived classes are Vector2s. Default is *true*.
+ 用于检查该类或者其派生类是否为Vector2,默认值为true。
+
- You should not change this, as it is used internally for optimisation.
+ 你不应当对这个属性进行改变,因为它在内部使用,以用于优化。
Alias for [page:.y y].
+[page:.y y]的别名。
Alias for [page:.x x].
+[page:.x x]的别名。
Adds [page:Vector2 v] to this vector.
From c4d849b0603c6c7047ed3f9af38b3db49cb2661c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E7=82=B3=E6=9D=83?= <695601626@qq.com> Date: Fri, 14 Dec 2018 16:46:08 +0800 Subject: [PATCH 50/85] fixes bug --- editor/js/Sidebar.Object.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/js/Sidebar.Object.js b/editor/js/Sidebar.Object.js index 78086dd213a02d..b6510fb90020ea 100644 --- a/editor/js/Sidebar.Object.js +++ b/editor/js/Sidebar.Object.js @@ -480,8 +480,8 @@ Sidebar.Object = function ( editor ) { if ( object.receiveShadow !== undefined && object.receiveShadow !== objectReceiveShadow.getValue() ) { - editor.execute( new SetValueCommand( object, 'receiveShadow', objectReceiveShadow.getValue() ) ); object.material.needsUpdate = true; + editor.execute( new SetValueCommand( object, 'receiveShadow', objectReceiveShadow.getValue() ) ); } From c7213e28045bf21abf1c9f3829dc08d8117c8eea Mon Sep 17 00:00:00 2001 From: Conrad PinnowAn abstract base class for creating a [name] object that contains methods for interpolation. diff --git a/docs/api/zh/extras/core/CurvePath.html b/docs/api/zh/extras/core/CurvePath.html index 54c6c8ef6e48c9..9b32955a386469 100644 --- a/docs/api/zh/extras/core/CurvePath.html +++ b/docs/api/zh/extras/core/CurvePath.html @@ -10,50 +10,50 @@
[page:Curve] → -- An abstract base class extending [page:Curve]. A CurvePath is simply an array of connected curves, - but retains the api of a curve. + + 一个扩展了[page:Curve]的抽象基类。CurvePath仅仅是一个已连接的曲线的数组,但保留了曲线的API。
-- The constructor take no parameters. + 构造函数中不传入参数。
-See the base [page:Curve] class for common properties.
+请参阅其基类[page:Curve]来了解供共有属性。
The array of [page:Curve Curves].
+[page:Curve Curves]数组。
Whether or not to automatically close the path.
+是否自动闭合路径。
-See the base [page:Curve] class for common methods.
+请参阅其基类[page:Curve]来了解共有方法。
Add a curve to the [page:.curves] array.
+添加一条曲线到[page:.curves]数组中。
Adds a [page:LineCurve lineCurve] to close the path.
+添加一条[page:LineCurve lineCurve]用于闭合路径。
Adds together the lengths of the curves in the [page:.curves] array.
+将[page:.curves]数组中曲线的长度相加。
-TODO
-
- t -- interpolation weight.
- p0, p1, p2, p3 -- the points defining the spline curve.
+ t -- 插值权重
+ p0, p1, p2, p3 -- 定义了样条曲线的点。
- Used internally by [page:SplineCurve SplineCurve].
+ 在内部由[page:SplineCurve SplineCurve]所使用。
- t -- interpolation weight.
- p0, p1, p2 -- the starting, control and end points defining the curve.
+ t -- 插值权重
+ p0, p1, p2 -- 定义了该曲线的起始点、控制点和终止点。
- Used internally by [page:QuadraticBezierCurve3 QuadraticBezierCurve3], [page:QuadraticBezierCurve QuadraticBezierCurve] and [page:Font Font].
+ 在内部由[page:QuadraticBezierCurve3 QuadraticBezierCurve3]、[page:QuadraticBezierCurve QuadraticBezierCurve]和[page:Font Font]所使用。
- t -- interpolation weight.
- p0, p1, p2, p3 -- the starting, control(twice) and end points defining the curve.
+ t -- 插值权重
+ p0, p1, p2, p3 -- 定义了该曲线的起始点、两个控制点和终止点。
- Used internally by [page:CubicBezierCurve3 CubicBezierCurve3], [page:CubicBezierCurve CubicBezierCurve] and [page:Font Font].
+ 在内部由[page:CubicBezierCurve3 CubicBezierCurve3]、[page:CubicBezierCurve CubicBezierCurve]和[page:Font Font]所使用。
- A 2D path representation. The class provides methods for creating paths and contours of 2D shapes similar to the 2D Canvas API. + 该类定义了二维路径,提供了一些类似2D Canvas API的方法来创建或者构造二维路径。
-
var path = new THREE.Path();
@@ -35,110 +35,108 @@ Example
-
- points -- (optional) array of [page:Vector2 Vector2s].
+ points -- (可选)[page:Vector2 Vector2s]数组。
- Creates a Path from the points. The first point defines the offset, then successive points
- are added to the [page:CurvePath.curves curves] array as [page:LineCurve LineCurves].
+ 从传入的点中创建一条Path。第一个点定义了偏移量,
+ 接下来的点作为[page:LineCurve LineCurves]被添加到[page:CurvePath.curves curves]数组中。
- If no points are specified, an empty path is created and the [page:.currentPoint] is set to
- the origin.
+ 倘若没有点被指定,一条空路径将会被创建,[page:.currentPoint]将被设置为原点。
See the base [page:CurvePath] class for common properties.
+请参阅其基类[page:CurvePath]来了解共有属性。
The current offset of the path. Any new [page:Curve] added will start here.
+路径当前的偏移量,任何新被加入的[page:Curve]将会从这里开始。
-See the base [page:CurvePath] class for common methods.
+请参阅其基类[page:CurvePath]来了解共有方法。
- x, y -- The absolute center of the arc.
- radius -- The radius of the arc.
- startAngle -- The start angle in radians.
- endAngle -- The end angle in radians.
- clockwise -- Sweep the arc clockwise. Defaults to *false*.
+ x, y -- 弧线的绝对中心。
+ radius -- 弧线的半径。
+ startAngle -- 起始角,以弧度来表示。
+ endAngle -- 终止角,以弧度来表示。
+ clockwise -- 以顺时针方向创建(扫过)弧线。默认值为*false*。
- Adds an absolutely positioned [page:EllipseCurve EllipseCurve] to the path.
+ 添加一条绝对定位的[page:EllipseCurve EllipseCurve]到路径中。
- x, y -- The absolute center of the ellipse.
- xRadius -- The radius of the ellipse in the x axis.
- yRadius -- The radius of the ellipse in the y axis.
- startAngle -- The start angle in radians.
- endAngle -- The end angle in radians.
- clockwise -- Sweep the ellipse clockwise. Defaults to false.
- rotation -- The rotation angle of the ellipse in radians, counterclockwise from the positive X axis. Optional, defaults to 0.
-
- Adds an absolutely positioned [page:EllipseCurve EllipseCurve] to the path.
+ x, y -- 椭圆的绝对中心。
+ xRadius -- 椭圆x轴方向的半径。
+ yRadius -- 椭圆y轴方向的半径。
+ startAngle -- 起始角,以弧度来表示。
+ endAngle -- 终止角,以弧度来表示。
+ clockwise -- 以顺时针方向创建(扫过)椭圆。默认值为*false*。
+ rotation -- 椭圆从X轴正方向逆时针的旋转角度(可选),以弧度表示,默认值为*0*。
+
+ 添加一条绝对定位的[page:EllipseCurve EllipseCurve]到路径中。
- x, y -- The center of the arc offset from the last call.
- radius -- The radius of the arc.
- startAngle -- The start angle in radians.
- endAngle -- The end angle in radians.
- clockwise -- Sweep the arc clockwise. Defaults to *false*.
+ x, y -- 弧线的中心来自上次调用后的偏移量。
+ radius -- 弧线的半径。
+ startAngle -- 起始角,以弧度来表示。
+ endAngle -- 终止角,以弧度来表示。
+ clockwise -- 以顺时针方向创建(扫过)弧线。默认值为*false*。
- Adds an [page:EllipseCurve EllipseCurve] to the path, positioned relative to [page:.currentPoint].
+ 添加一条[page:EllipseCurve EllipseCurve]到路径中,位置相对于[page:.currentPoint]。
This creates a bezier curve from [page:.currentPoint] with (cp1X, cp1Y) and (cp2X, cp2Y) as control points and updates [page:.currentPoint] to x and y.
+从[page:.currentPoint]创建一条贝塞尔曲线,以(cp1X, cp1Y)和(cp2X, cp2Y)作为控制点,并将[page:.currentPoint]更新到x,y。
- x, y -- The center of the ellipse offset from the last call.
- xRadius -- The radius of the ellipse in the x axis.
- yRadius -- The radius of the ellipse in the y axis.
- startAngle -- The start angle in radians.
- endAngle -- The end angle in radians.
- clockwise -- Sweep the ellipse clockwise. Defaults to *false*.
- rotation -- The rotation angle of the ellipse in radians, counterclockwise from the positive X axis. Optional, defaults to *0*.
-
- Adds an [page:EllipseCurve EllipseCurve] to the path, positioned relative to [page:.currentPoint].
+ x, y -- 椭圆的中心来自上次调用后的偏移量。The center of the ellipse offset from the last call.
+ xRadius -- 椭圆x轴方向的半径。
+ yRadius -- 椭圆y轴方向的半径。
+ startAngle -- 起始角,以弧度来表示。
+ endAngle -- 终止角,以弧度来表示。
+ clockwise -- 以顺时针方向创建(扫过)椭圆。默认值为*false*。
+ rotation -- 椭圆从X轴正方向逆时针的旋转角度(可选),以弧度表示,默认值为*0*。
+
+ 添加一条[page:EllipseCurve EllipseCurve]到路径中,位置相对于[page:.currentPoint]。
Connects a [page:LineCurve] from [page:.currentPoint] to x, y onto the path.
+在当前路径上,从[page:.currentPoint]连接一条直线到x,y。
Move the [page:.currentPoint] to x, y.
+将[page:.currentPoint]移动到x, y。
Creates a quadratic curve from [page:.currentPoint] with cpX and cpY as control point and updates [page:.currentPoint] to x and y.
+从[page:.currentPoint]创建一条二次曲线,以(cpX,cpY)作为控制点,并将[page:.currentPoint]更新到x,y。
- points -- array of [page:Vector2 Vector2s].
+ points -- [page:Vector2 Vector2]数组。
- Points are added to the [page:CurvePath.curves curves]
- array as [page:LineCurve LineCurves].
+ 点将被作为[page:LineCurve LineCurves]加入到[page:CurvePath.curves curves]数组中。
- points - An array of [page:Vector2 Vector2s]
+ points -[page:Vector2 Vector2]数组。
- Connects a new [page:SplineCurve] onto the path.
+ 连接一条新的[page:SplineCurve]到路径上。
diff --git a/docs/api/zh/extras/curves/CubicBezierCurve3.html b/docs/api/zh/extras/curves/CubicBezierCurve3.html index b60dd4601d92d0..f6c9c5a4acefe6 100644 --- a/docs/api/zh/extras/curves/CubicBezierCurve3.html +++ b/docs/api/zh/extras/curves/CubicBezierCurve3.html @@ -10,7 +10,7 @@
[page:Curve] → -创建一条光滑的三维 diff --git a/docs/api/zh/extras/curves/LineCurve.html b/docs/api/zh/extras/curves/LineCurve.html index 02d5efe610042e..fd8d674ab296a2 100644 --- a/docs/api/zh/extras/curves/LineCurve.html +++ b/docs/api/zh/extras/curves/LineCurve.html @@ -10,7 +10,7 @@
[page:Curve] → -一个表示二维线段的曲线。
diff --git a/docs/api/zh/extras/curves/QuadraticBezierCurve.html b/docs/api/zh/extras/curves/QuadraticBezierCurve.html index f20c947bd81d7d..0356382cfd1bd6 100644 --- a/docs/api/zh/extras/curves/QuadraticBezierCurve.html +++ b/docs/api/zh/extras/curves/QuadraticBezierCurve.html @@ -10,15 +10,15 @@ [page:Curve] → -- Create a smooth 2d - quadratic bezier curve, - defined by a startpoint, endpoint and a single control point. + 创建一条光滑的二维 + 二次贝塞尔曲线, + 由起点、终点和一个控制点所定义。
-
var curve = new THREE.QuadraticBezierCurve(
@@ -36,41 +36,41 @@ Example
var curveObject = new THREE.Line( geometry, material );
-
- [page:Vector2 v0] – The startpoint.
- [page:Vector2 v1] – The control point.
- [page:Vector2 v2] – The endpoint.
+ [page:Vector2 v0] – 起点
+ [page:Vector2 v1] – 中间的控制点
+ [page:Vector2 v2] – 终点
See the base [page:Curve] class for common properties.
+请参阅其基类[page:Curve]来了解共有属性。
- Used to check whether this or derived classes are QuadraticBezierCurves. Default is *true*.
+ 用于检查该类或者其派生类是否为QuadraticBezierCurve。默认值为*true*。
- You should not change this, as it used internally for optimisation.
+ 你不应当对这一属性进行改变,它在内部使用,以用于优化。
The startpoint.
+起点
The control point.
+控制点
The endpoint.
+终点
-See the base [page:Curve] class for common methods.
+请参阅其基类[page:Curve]来了解共有方法。
-创建一条光滑的三维 diff --git a/docs/api/zh/extras/objects/ImmediateRenderObject.html b/docs/api/zh/extras/objects/ImmediateRenderObject.html index c2f8f8d5034f46..3a9d4694a43a97 100644 --- a/docs/api/zh/extras/objects/ImmediateRenderObject.html +++ b/docs/api/zh/extras/objects/ImmediateRenderObject.html @@ -10,9 +10,9 @@
[page:Object3D] → -及时渲染对象的基类。
+即时渲染对象的基类。
- 这个类是对[link:http://en.wikipedia.org/wiki/Quaternion quaternion](四元数)的实现。 - 它用于排除万向锁([link:http://en.wikipedia.org/wiki/Gimbal_lock gimbal lock])问题,以对物体进行旋转([link:https://en.wikipedia.org/wiki/Quaternions_and_spatial_rotation rotating things]), - 此外它还具有其它优点。 + Implementation of a [link:http://en.wikipedia.org/wiki/Quaternion quaternion]. + This is used for [link:https://en.wikipedia.org/wiki/Quaternions_and_spatial_rotation rotating things] + without encountering the dreaded + [link:http://en.wikipedia.org/wiki/Gimbal_lock gimbal lock] issue, amongst other + advantages.
-
var quaternion = new THREE.Quaternion();
@@ -28,7 +30,7 @@ 示例
- 改变这一属性将会导致[page:.onChangeCallback onChangeCallback]被调用。
+Changing this property will result in [page:.onChangeCallback onChangeCallback] being called.
改变这一属性将会导致[page:.onChangeCallback onChangeCallback]被调用。
+Changing this property will result in [page:.onChangeCallback onChangeCallback] being called.
改变这一属性将会导致[page:.onChangeCallback onChangeCallback]被调用。
+Changing this property will result in [page:.onChangeCallback onChangeCallback] being called.
改变这一属性将会导致[page:.onChangeCallback onChangeCallback]被调用。
+Changing this property will result in [page:.onChangeCallback onChangeCallback] being called.
-- 以弧度的形式返回这一四元数与四元数[page:Quaternion q]之间的夹角。 + Returns the angle between this quaternion and quaternion [page:Quaternion q] in radians.
- 以和这一四元数相同的[page:.x x]、[page:.y y]、[page:.z z]和[page:.w w]属性来创建一个新的四元数。 + Creates a new Quaternion with identical [page:.x x], [page:.y y], + [page:.z z] and [page:.w w] properties to this one.
- 表示2D [link:https://en.wikipedia.org/wiki/Vector_space vector](二维向量)的类。 + Class representing a 2D [link:https://en.wikipedia.org/wiki/Vector_space vector]. - 一个二维向量是一对有顺序的数字(标记为x和y),可被用于表示很多事物,例如: + A 2D vector is an ordered pair of numbers (labeled x and y), which can be used to + represent a number of things, such as:
- 其他的一些事物也可以使用二维向量进行表示,比如说动量矢量、复数等等;但以上这些是three.js中的常用用途。 + There are other things a 2D vector can be used to represent, such as momentum + vectors, complex numbers and so on, however these are the most common uses in three.js.
-
var a = new THREE.Vector2( 0, 1 );
@@ -46,39 +49,38 @@ 示例
-
- [page:Float x] - 向量的x值,默认值为*0*。
- [page:Float y] - 向量的y值,默认值为*0*。
+ [page:Float x] - the x value of the vector. Default is *0*.
+ [page:Float y] - the y value of the vector. Default is *0*.
- 创建一个新的[name]。
+ Creates a new [name].
- 用于检查该类或者其派生类是否为Vector2,默认值为true。
-
+ Used to check whether this or derived classes are Vector2s. Default is *true*.
- 你不应当对这个属性进行改变,因为它在内部使用,以用于优化。
+ You should not change this, as it is used internally for optimisation.
[page:.y y]的别名。
+Alias for [page:.y y].
[page:.x x]的别名。
+Alias for [page:.x x].
Adds [page:Vector2 v] to this vector.
@@ -341,4 +343,4 @@