提交 0c86bc1d 编写于 作者: G gonnavis

ExtrudeGeometry's extrudePath should be Curve not CurvePath

According to issue https://github.com/mrdoob/three.js/issues/17029
上级 ce97f8b1
......@@ -79,7 +79,7 @@
<li>bevelSize — float. Distance from the shape outline that the bevel extends. Default is bevelThickness - 2.</li>
<li>bevelOffset — float. Distance from the shape outline that the bevel starts. Default is 0.</li>
<li>bevelSegments — int. Number of bevel layers. Default is 3.</li>
<li>extrudePath — THREE.CurvePath. A 3D spline path along which the shape should be extruded.</li>
<li>extrudePath — THREE.Curve. A 3D spline path along which the shape should be extruded.</li>
<li>UVGenerator — Object. object that provides UV generator functions</li>
</ul>
......
......@@ -79,7 +79,7 @@
<li>bevelSize — float. Distance from the shape outline that the bevel extends. Default is bevelThickness - 2.</li>
<li>bevelOffset — float. Distance from the shape outline that the bevel starts. Default is 0.</li>
<li>bevelSegments — int. Number of bevel layers. Default is 3.</li>
<li>extrudePath — THREE.CurvePath. A 3D spline path along which the shape should be extruded.</li>
<li>extrudePath — THREE.Curve. A 3D spline path along which the shape should be extruded.</li>
<li>UVGenerator — Object. object that provides UV generator functions</li>
</ul>
......
......@@ -77,7 +77,7 @@
<li>bevelThickness — float,设置原始形状上斜角的厚度。默认值为6。</li>
<li>bevelSize — float。斜角与原始形状轮廓之间的延伸距离,默认值为bevelThickness-2。</li>
<li>bevelSegments — int。斜角的分段层数,默认值为3。</li>
<li>extrudePath — THREE.CurvePath对象。一条沿着被挤出形状的三维样条线。</li>
<li>extrudePath — THREE.Curve对象。一条沿着被挤出形状的三维样条线。</li>
<li>UVGenerator — Object。提供了UV生成器函数的对象。</li>
</ul>
......
......@@ -77,7 +77,7 @@
<li>bevelThickness — float,设置原始形状上斜角的厚度。默认值为6。</li>
<li>bevelSize — float。斜角与原始形状轮廓之间的延伸距离,默认值为bevelThickness-2。</li>
<li>bevelSegments — int。斜角的分段层数,默认值为3。</li>
<li>extrudePath — THREE.CurvePath对象。一条沿着被挤出形状的三维样条线。</li>
<li>extrudePath — THREE.Curve对象。一条沿着被挤出形状的三维样条线。</li>
<li>UVGenerator — Object。提供了UV生成器函数的对象。</li>
</ul>
......
import { CurvePath } from './../extras/core/CurvePath';
import { Curve } from './../extras/core/Curve';
import { UVGenerator } from './ExtrudeGeometry';
import { Vector2 } from './../math/Vector2';
import { Vector3 } from './../math/Vector3';
......@@ -15,7 +15,7 @@ export interface ExtrudeGeometryOptions {
bevelSize?: number;
bevelOffset?: number;
bevelSegments?: number;
extrudePath?: CurvePath<Vector3>;
extrudePath?: Curve<Vector3>;
UVGenerator?: UVGenerator;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册