Michael Herzog 3 лет назад
Родитель
Сommit
c54b035030
2 измененных файлов с 22 добавлено и 10 удалено
  1. 11 5
      docs/examples/en/loaders/PCDLoader.html
  2. 11 5
      docs/examples/zh/loaders/PCDLoader.html

+ 11 - 5
docs/examples/en/loaders/PCDLoader.html

@@ -11,9 +11,15 @@
 
 
 		<h1>[name]</h1>
 		<h1>[name]</h1>
 
 
-		<p class="desc">A loader for loading a `.pcd` resource. <br />
-		Point Cloud Data is a file format for <a href="https://en.wikipedia.org/wiki/Point_Cloud_Library">Point Cloud Library</a>. <br />
-		Loader support ascii and (compressed) binary.
+		<p class="desc">
+			A loader for the PCD (Point Cloud Data) file format. [name] supports ASCII and (compressed) binary files as well as the following PCD fields:
+			<ul>
+				<li>x y z</li>
+				<li>rgb</li>
+				<li>normal_x normal_y normal_z</li>
+				<li>intensity</li>
+				<li>label</li>
+			</ul>
 		</p>
 		</p>
 
 
 		<h2>Code Example</h2>
 		<h2>Code Example</h2>
@@ -28,9 +34,9 @@
 			// resource URL
 			// resource URL
 			'pointcloud.pcd',
 			'pointcloud.pcd',
 			// called when the resource is loaded
 			// called when the resource is loaded
-			function ( mesh ) {
+			function ( points ) {
 
 
-				scene.add( mesh );
+				scene.add( points );
 
 
 			},
 			},
 			// called when loading is in progresses
 			// called when loading is in progresses

+ 11 - 5
docs/examples/zh/loaders/PCDLoader.html

@@ -11,9 +11,15 @@
 
 
 		<h1>[name]</h1>
 		<h1>[name]</h1>
 
 
-		<p class="desc">用于加载 <em>.pcd</em> 资源的加载器。<br />
-		点云数据是 <a href="https://en.wikipedia.org/wiki/Point_Cloud_Library">点云库</a> 的文件格式。 <br />
-		加载器支持 ascii 和 (压缩) 二进制编码。
+		<p class="desc">
+			A loader for the PCD (Point Cloud Data) file format. [name] supports ASCII and (compressed) binary files as well as the following PCD fields:
+			<ul>
+				<li>x y z</li>
+				<li>rgb</li>
+				<li>normal_x normal_y normal_z</li>
+				<li>intensity</li>
+				<li>label</li>
+			</ul>
 		</p>
 		</p>
 
 
 		<h2>代码示例</h2>
 		<h2>代码示例</h2>
@@ -28,9 +34,9 @@
 			// resource URL
 			// resource URL
 			'pointcloud.pcd',
 			'pointcloud.pcd',
 			// called when the resource is loaded
 			// called when the resource is loaded
-			function ( mesh ) {
+			function ( points ) {
 
 
-				scene.add( mesh );
+				scene.add( points );
 
 
 			},
 			},
 			// called when loading is in progresses
 			// called when loading is in progresses