問題タブ [ply-file-format]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
import - PCL io::loadPLYFile を使用して .ply ファイルをインポートする方法は?
ply ファイルをプログラムにインポートすると、次のメッセージで問題が発生したというエラー メッセージが表示されます。
https://people.sc.fsu.edu/~jburkardt/data/ply/apple.plyのサンプル ply ファイルを使用しました。
さまざまなソースからのさまざまな ply ファイルを既に試しましたが、どれも機能しません。プログラムをデバッグするとき、io::loadPLYFile は有効なポイント クラウドを生成しません。PCL と私のプログラムのランタイム ライブラリは同じです。
ドキュメントhttp://docs.pointclouds.org/1.3.1/group__io.htmlで説明されているように、PCL関数io::loadPLYFileがファイルを適切にロードすることを期待します
c# - Reading binary PLY file face indices using C#
I am reading .ply binary file using this project: https://github.com/Zarbuz/FileToVox/blob/2064dcf99532e9c22748afb8e1a3755c1e5dfb81/SchematicToVoxCore/Converter/PLYToSchematic.cs
It works for reading points and their colors. But I do not understand how to retrieve the list of mesh faces indices.
In the function ReadDataHeaders I successuflly retrieve the number of faces:
But what I do not understand is how retrieve the mesh face indices in the function ReadDataBodyBoundary. I do not also understand how the BinaryReader works in this function, how does it reads the each line of binary form for mesh faces vertex indices.