#include <iostream>
#include <fstream>
#include <string>
using namespace std;
int main()
{
cout<<"讀取PLY檔前20行資訊\n";
fstream fin("shiba0.ply");
string tmp;
do{
getline(fin, tmp);
cout<<tmp<<"\n";
} while(tmp!="end_header");
float x, y, z;
float nx, ny, nz;
unsigned R, G, B;
fin>>x>>y>>z>>nx>>ny>>nz>>R>>G>>B;
cout<<x<<","<<y<<","<<z<<"\n";
cout<<nx<<","<<ny<<","<<nz<<"\n";
cout<<R<<","<<G<<","<<B<<"\n";
fin.close();
return 0;
}
herrDeng網內搜尋
自訂搜尋
Ads
2023年12月13日 星期三
從bag檔中擷取Ply檔,並用3D軟體開啟,C++程式讀取
訂閱:
張貼留言 (Atom)
熱門文章
-
11!=?
-
寫一個是否上學期成績2/3的程式
-
請輸出如下 * ** *** **** ***** ******
-
請問你所使的電腦,CPU的規格 Cache多大?其他硬體配置...... 另外, "INTEL® XEON PHI™ 處理器 7230F"的大致規格為?
-
何謂數位彌封
-
金鑰總數159*10^18 億=10^8 兆=10^12 京=10^16 垓=10^20 秭=10^24 穣=10^28 溝=10^32 澗=10^36 正=10^40 載=10^44 極=10^48 恆河沙=10^52 阿僧祇=10^56 那由...
-
計算gcd(123456789,999999999)
-
請用 for, array算出費式數列 其中 f[0]=f[1]=1, f[n]=f[n-1]+f[n-2] 或公式解 f(n)=1/sqrt(5)((1+sqrt(5))/2)^(n+1)-1/sqrt(5)((1-sqrt(5))/2)^(n+1)
沒有留言:
張貼留言