提交 95a77600 编写于 作者: G Garrett Johnson

Updates

上级 764fb013
...@@ -13,27 +13,23 @@ ...@@ -13,27 +13,23 @@
<p class="desc"> <p class="desc">
An exporter for *PLY*. An exporter for *PLY*.
<br /><br /> <br /><br />
<a href="https://www.khronos.org/gltf">glTF</a> (GL Transmission Format) is an <a href="https://www.khronos.org/gltf">PLY</a> (Polygon or Stanford Triangle Format) is
<a href="https://github.com/KhronosGroup/glTF/tree/master/specification/2.0">open format specification</a> file format for efficient delivery and loading of simple, static 3D content in a dense format.
for efficient delivery and loading of 3D content. Assets may be provided either in JSON (.gltf) Both binary and ascii formats are supported. PLY can store vertex positions, colors, normals and
or binary (.glb) format. External files store textures (.jpg, .png) and additional binary uv coordinates. No textures or texture references are saved.
data (.bin). A glTF asset may deliver one or more scenes, including meshes, materials,
textures, skins, skeletons, morph targets, animations, lights, and/or cameras.
</p> </p>
<h2>Example</h2> <h2>Example</h2>
<code> <code>
// Instantiate a exporter // Instantiate a exporter
var exporter = new THREE.PLYExporter( defaultOptions ); var exporter = new THREE.PLYExporter();
// Parse the input and generate the ply output // Parse the input and generate the ply output
var data = exporter.parse( scene, options ); var data = exporter.parse( scene, options );
downloadFile(data); downloadFile(data);
</code> </code>
[example:misc_exporter_gltf]
<h2>Constructor</h2> <h2>Constructor</h2>
<h3>[name]()</h3> <h3>[name]()</h3>
...@@ -55,7 +51,8 @@ ...@@ -55,7 +51,8 @@
</ul> </ul>
</p> </p>
<p> <p>
Generates ply file data as string or ArrayBuffer (ascii or binary) output from the input object Generates ply file data as string or ArrayBuffer (ascii or binary) output from the input object.
If the object is composed of multiple children and geometry, they are merged into a single mesh in the file.
</p> </p>
<h2>Source</h2> <h2>Source</h2>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册