You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

75 lines
1.9 KiB

<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="utf-8" />
<base href="../../../../" />
<script src="page.js"></script>
<link type="text/css" rel="stylesheet" href="page.css" />
</head>
<body>
[page:Curve] &rarr;
<h1>[name]</h1>
<p class="desc">
시작점, 종착점, 두 개의 조절점을 통해 매끄러운 3d
<a href="http://en.wikipedia.org/wiki/B%C3%A9zier_curve#mediaviewer/File:Bezier_curve.svg" target="_blank">베지에 곡선</a>을 만듭니다.
</p>
<h2>코드 예제</h2>
<code>
const curve = new THREE.CubicBezierCurve3(
new THREE.Vector3( -10, 0, 0 ),
new THREE.Vector3( -5, 15, 0 ),
new THREE.Vector3( 20, 15, 0 ),
new THREE.Vector3( 10, 0, 0 )
);
const points = curve.getPoints( 50 );
const geometry = new THREE.BufferGeometry().setFromPoints( points );
const material = new THREE.LineBasicMaterial( { color: 0xff0000 } );
// Create the final object to add to the scene
const curveObject = new THREE.Line( geometry, material );
</code>
<h2>생성자</h2>
<h3>[name]( [param:Vector3 v0], [param:Vector3 v1], [param:Vector3 v2], [param:Vector3 v3] )</h3>
<p>
[page:Vector3 v0] – 시작점.<br/>
[page:Vector3 v1] – 첫 번째 조절점.<br/>
[page:Vector3 v2] – 두 번째 조절점.<br/>
[page:Vector3 v3] – 종착점.
</p>
<h2>프로퍼티</h2>
<p>일반 프로퍼티는 기본 [page:Curve] 클래스를 참고하세요.</p>
<h3>[property:Vector3 v0]</h3>
<p>시작점입니다.</p>
<h3>[property:Vector3 v1]</h3>
<p>첫 번째 조절점입니다.</p>
<h3>[property:Vector3 v2]</h3>
<p>두 번째 조절점입니다.</p>
<h3>[property:Vector3 v3]</h3>
<p>종착점입니다.</p>
<h2>메서드</h2>
<p>일반 메서드는 기본 [page:Curve] 클래스를 참고하세요.</p>
<h2>소스코드</h2>
<p>
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
</p>
</body>
</html>