You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
2.0 KiB
HTML
71 lines
2.0 KiB
HTML
2 months ago
|
<!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:BufferGeometry] →
|
||
|
|
||
|
<h1>[name]</h1>
|
||
|
|
||
|
<p class="desc">평면 형상을 생성하기 위한 클래스입니다.</p>
|
||
|
|
||
|
<iframe id="scene" src="scenes/geometry-browser.html#PlaneGeometry"></iframe>
|
||
|
|
||
|
<script>
|
||
|
|
||
|
// iOS iframe auto-resize workaround
|
||
|
|
||
|
if ( /(iPad|iPhone|iPod)/g.test( navigator.userAgent ) ) {
|
||
|
|
||
|
const scene = document.getElementById( 'scene' );
|
||
|
|
||
|
scene.style.width = getComputedStyle( scene ).width;
|
||
|
scene.style.height = getComputedStyle( scene ).height;
|
||
|
scene.setAttribute( 'scrolling', 'no' );
|
||
|
|
||
|
}
|
||
|
|
||
|
</script>
|
||
|
|
||
|
<h2>코드 예제</h2>
|
||
|
|
||
|
<code>
|
||
|
const geometry = new THREE.PlaneGeometry( 1, 1 );
|
||
|
const material = new THREE.MeshBasicMaterial( {color: 0xffff00, side: THREE.DoubleSide} );
|
||
|
const plane = new THREE.Mesh( geometry, material );
|
||
|
scene.add( plane );
|
||
|
</code>
|
||
|
|
||
|
<h2>생성자</h2>
|
||
|
|
||
|
<h3>[name]([param:Float width], [param:Float height], [param:Integer widthSegments], [param:Integer heightSegments])</h3>
|
||
|
<p>
|
||
|
width — X축의 너비입니다. 기본값은 1 입니다.<br />
|
||
|
height — Y축의 높이입니다. 기본값은 1 입니다.<br />
|
||
|
widthSegments — Optional. 기본값은 1 입니다. <br />
|
||
|
heightSegments — Optional. 기본값은 1 입니다.
|
||
|
</p>
|
||
|
|
||
|
<h2>프로퍼티</h2>
|
||
|
<p>일반 프로퍼티는 기본 [page:BufferGeometry] 클래스를 참조하십시오.</p>
|
||
|
|
||
|
<h3>[property:Object parameters]</h3>
|
||
|
<p>
|
||
|
각 생성자 매개 변수에 대한 속성이 있는 개체입니다. 인스턴스화 후 수정해도 형상은 변경되지 않습니다.
|
||
|
</p>
|
||
|
|
||
|
<h2>메서드</h2>
|
||
|
<p>일반 메서드는 기본 [page:BufferGeometry] 클래스를 참조하십시오.</p>
|
||
|
|
||
|
<h2>소스 코드</h2>
|
||
|
|
||
|
<p>
|
||
|
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
|
||
|
</p>
|
||
|
</body>
|
||
|
</html>
|