<!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] → <h1>[name]</h1> <p class="desc"> 연속된 점들로부터 매끄러운 2d 곡선을 만듭니다. 내부적으로 [page:Interpolations.CatmullRom]을 사용해 곡선을 만듭니다. </p> <h2>코드 예제</h2> <code> // Create a sine-like wave const curve = new THREE.SplineCurve( [ new THREE.Vector2( -10, 0 ), new THREE.Vector2( -5, 5 ), new THREE.Vector2( 0, 0 ), new THREE.Vector2( 5, -5 ), new THREE.Vector2( 10, 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 splineObject = new THREE.Line( geometry, material ); </code> <h2>생성자</h2> <h3>[name]( [param:Array points] )</h3> <p>points – [page:Vector2] 배열의 점으로 곡선을 정의합니다.</p> <h2>프로퍼티</h2> <p>일반 프로퍼티는 기본 [page:Curve] 클래스를 참고하세요.</p> <h3>[property:Array points]</h3> <p>곡선을 정의하는 [page:Vector2] 점들의 배열입니다.</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>