提交 c3096ade 编写于 作者: M Mr.doob

Updated docs.

上级 c97bcf9b
......@@ -62,7 +62,7 @@
<h3>[property:Array colors]</h3>
<div>
Array of vertex [page:Color colors], matching number and order of vertices.<br />
Used in [page:PointCloud] and [page:Line].<br />
Used in [page:Points] and [page:Line].<br />
[page:Mesh Meshes] use per-face-use-of-vertex colors embedded directly in faces.<br />
To signal an update in this array, [page:Geometry Geometry.colorsNeedUpdate] needs to be set to true.
</div>
......
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta charset="utf-8" />
<base href="../../" />
<script src="list.js"></script>
<script src="page.js"></script>
......@@ -300,7 +300,7 @@
<h3>[method:Array raycast]([page:Raycaster raycaster], [page:Array intersects])</h3>
<div>
Abstract method to get intersections between a casted ray and this object. Subclasses such as [page:Mesh], [page:Line], and [page:PointCloud] implement this method in order to participate in raycasting.
Abstract method to get intersections between a casted ray and this object. Subclasses such as [page:Mesh], [page:Line], and [page:Points] implement this method in order to participate in raycasting.
</div>
<h2>Source</h2>
......
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta charset="utf-8" />
<base href="../../" />
<script src="list.js"></script>
<script src="page.js"></script>
......@@ -56,7 +56,7 @@
[example:webgl_interactive_cubes_ortho Raycasting to a Mesh in using an OrthographicCamera],
[example:webgl_interactive_buffergeometry Raycasting to a Mesh with BufferGeometry],
[example:webgl_interactive_lines Raycasting to a Line],
[example:webgl_interactive_raycasting_pointcloud Raycasting to a PointCloud],
[example:webgl_interactive_raycasting_pointcloud Raycasting to a Points],
[example:webgl_geometry_terrain_raycast Terrain raycasting],
[example:webgl_octree_raycasting Raycasting using an octree],
[example:webgl_interactive_voxelpainter Raycasting to paint voxels]</div>
......@@ -149,7 +149,7 @@
When intersecting a [page:Mesh] with a [page:BufferGeometry], the *faceIndex* will be *undefined*, and *indices* will be set; when intersecting a [page:Mesh] with a [page:Geometry], *indices* will be *undefined*.
</p>
<p>
*Raycaster* delegates to the [page:Object3D.raycast raycast] method of the passed object, when evaluating whether the ray intersects the object or not. This allows [page:Mesh meshes] to respond differently to ray casting than [page:Line lines] and [page:PointCloud pointclouds].
*Raycaster* delegates to the [page:Object3D.raycast raycast] method of the passed object, when evaluating whether the ray intersects the object or not. This allows [page:Mesh meshes] to respond differently to ray casting than [page:Line lines] and [page:Points pointclouds].
</p>
<p>
*Note* that for meshes, faces must be pointed towards the origin of the [page:.ray ray] in order to be detected; intersections of the ray passing through the back of a face will not be detected. To raycast against both faces of an object, you'll want to set the [page:Mesh.material material]'s [page:Material.side side] property to *THREE.DoubleSide*.
......
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta charset="utf-8" />
<base href="../../" />
<script src="list.js"></script>
<script src="page.js"></script>
......@@ -12,7 +12,7 @@
<h1>[name]</h1>
<div class="desc">The default material used by [page:PointCloud particle] systems.</div>
<div class="desc">The default material used by [page:Points particle] systems.</div>
<h2>Constructor</h2>
......
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta charset="utf-8" />
<base href="../../" />
<script src="list.js"></script>
<script src="page.js"></script>
......@@ -33,27 +33,27 @@
<h3>[property:Material material]</h3>
<div>An instance of [page:Material], defining the object's appearance. Default is a [page:PointCloudMaterial] with randomised colour.</div>
<div>An instance of [page:Material], defining the object's appearance. Default is a [page:PointsMaterial] with randomised colour.</div>
<h2>Methods</h2>
<h3>[method:PointCloud clone]()</h3>
<h3>[method:Points clone]()</h3>
<div>
This creates a clone of the particle system.
</div>
<h3>[method:Array raycast]([page:Raycaster raycaster], [page:Array intersects])</h3>
<div>
Get intersections between a casted ray and this PointCloud. [page:Raycaster.intersectObject] will call this method.
Get intersections between a casted ray and this Points. [page:Raycaster.intersectObject] will call this method.
</div>
<h3>[method:Object3D clone]([page:Object3D object])</h3>
<div>
object -- (optional) Object3D which needs to be cloned. If undefined, clone method will create a new cloned PointCloud Object.
object -- (optional) Object3D which needs to be cloned. If undefined, clone method will create a new cloned Points Object.
</div>
<div>
Clone a PointCloud Object.
Clone a Points Object.
</div>
<h2>Source</h2>
......
......@@ -77,7 +77,7 @@ var list = {
[ "MeshLambertMaterial", "api/materials/MeshLambertMaterial" ],
[ "MeshNormalMaterial", "api/materials/MeshNormalMaterial" ],
[ "MeshPhongMaterial", "api/materials/MeshPhongMaterial" ],
[ "PointCloudMaterial", "api/materials/PointCloudMaterial" ],
[ "PointsMaterial", "api/materials/PointsMaterial" ],
[ "RawShaderMaterial", "api/materials/RawShaderMaterial" ],
[ "ShaderMaterial", "api/materials/ShaderMaterial" ],
[ "SpriteCanvasMaterial", "api/materials/SpriteCanvasMaterial" ],
......@@ -113,7 +113,7 @@ var list = {
[ "LOD", "api/objects/LOD" ],
[ "Mesh", "api/objects/Mesh" ],
[ "MorphAnimMesh", "api/objects/MorphAnimMesh" ],
[ "PointCloud", "api/objects/PointCloud" ],
[ "Points", "api/objects/Points" ],
[ "SkinnedMesh", "api/objects/SkinnedMesh" ],
[ "Skeleton", "api/objects/Skeleton" ],
[ "Sprite", "api/objects/Sprite" ]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册