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.
92 lines
2.6 KiB
92 lines
2.6 KiB
2 years ago
|
<!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:Object3D] →
|
||
|
|
||
|
<h1>点([name])</h1>
|
||
|
|
||
|
<p class="desc">
|
||
|
一个用于显示点的类。
|
||
|
由[page:WebGLRenderer]渲染的点使用
|
||
|
[link:https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/drawElements gl.POINTS]。
|
||
|
</p>
|
||
|
|
||
|
|
||
|
<h2>构造器</h2>
|
||
|
|
||
|
<h3>[name]( [param:BufferGeometry geometry], [param:Material material] )</h3>
|
||
|
<p>
|
||
|
[page:BufferGeometry geometry] —— (可选)是一个[page:BufferGeometry]的实例,默认值是一个新的[page:BufferGeometry]。
|
||
|
<br />
|
||
|
[page:Material material] —— (可选) 是一个对象,默认值是一个[page:PointsMaterial]。
|
||
|
</p>
|
||
|
|
||
|
|
||
|
<h2>属性</h2>
|
||
|
<p>共有属性请参见其基类[page:Object3D]。</p>
|
||
|
|
||
|
<h3>[property:BufferGeometry geometry]</h3>
|
||
|
<p>
|
||
|
一个[page:BufferGeometry]的实例(或者派生类),定义了物体的结构。
|
||
|
</p>
|
||
|
|
||
|
<h3>[property:Boolean isPoints]</h3>
|
||
|
<p>
|
||
|
Read-only flag to check if a given object is of type [name].
|
||
|
</p>
|
||
|
|
||
|
<h3>[property:Material material]</h3>
|
||
|
<p>
|
||
|
[page:Material]的实例。定义了物体的外观。默认值是一个的[page:PointsMaterial]。
|
||
|
</p>
|
||
|
|
||
|
<h3>[property:Array morphTargetInfluences]</h3>
|
||
|
<p>
|
||
|
一个包含有权重(值一般在0-1范围内)的数组,指定应用了多少变形。
|
||
|
默认情况下是未定义的,但是会被[page:Points.updateMorphTargets updateMorphTargets]重置为一个空数组。
|
||
|
</p>
|
||
|
|
||
|
<h3>[property:Object morphTargetDictionary]</h3>
|
||
|
<p>
|
||
|
基于morphTarget.name属性的morphTargets字典。
|
||
|
默认情况下是未定义的,但是会被[page:Points.updateMorphTargets updateMorphTargets]重建。
|
||
|
</p>
|
||
|
|
||
|
<h2>方法</h2>
|
||
|
<p>共有方法请参见其基类[page:Object3D]。</p>
|
||
|
|
||
|
<h3>[method:undefined raycast]( [param:Raycaster raycaster], [param:Array intersects] )</h3>
|
||
|
<p>
|
||
|
在一条投射出去的[page:Ray](射线)和点之间产生交互。
|
||
|
[page:Raycaster.intersectObject]将会调用这个方法。
|
||
|
</p>
|
||
|
|
||
|
<h3>[method:Points clone]()</h3>
|
||
|
<p>
|
||
|
返回这个点及其子集的一个克隆对象。
|
||
|
</p>
|
||
|
|
||
|
<h3>[method:undefined updateMorphTargets]()</h3>
|
||
|
<p>
|
||
|
更新morphTargets,使其不对对象产生影响,重置[page:Points.morphTargetInfluences morphTargetInfluences] 和
|
||
|
[page:Points.morphTargetDictionary morphTargetDictionary]属性。
|
||
|
</p>
|
||
|
|
||
|
<h2>源代码</h2>
|
||
|
|
||
|
<p>
|
||
|
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
|
||
|
</p>
|
||
|
|
||
|
</body>
|
||
|
|
||
|
</html>
|