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.

55 lines
1.3 KiB
HTML

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<!DOCTYPE html>
<html lang="zh">
<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] &rarr;
<h1>凸包几何体([name]</h1>
<p class="desc">[name] 可被用于为传入的一组点生成凸包。
该任务的平均时间复杂度被认为是O(nlog(n))。</p>
<h2>导入</h2>
<p>
[name] 是一个附加组件,必须显式导入。
See [link:#manual/introduction/Installation Installation / Addons].
</p>
<code>
import { ConvexGeometry } from 'three/addons/geometries/ConvexGeometry.js';
</code>
<h2>代码示例</h2>
<code>const geometry = new ConvexGeometry( points );
const material = new THREE.MeshBasicMaterial( {color: 0x00ff00} );
const mesh = new THREE.Mesh( geometry, material );
scene.add( mesh );
</code>
<h2>例子</h2>
<p>[example:webgl_geometry_convex geometry / convex ]</p>
<h2>Constructor</h2>
<h3>[name]( [param:Array points] )</h3>
<p>
points — 所得凸包中将包含的一组[page:Vector3 Vector3]。
</p>
<h2>源代码</h2>
<p>
[link:https://github.com/mrdoob/three.js/blob/master/examples/jsm/geometries/ConvexGeometry.js examples/jsm/geometries/ConvexGeometry.js]
</p>
</body>
</html>