|
@@ -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
|