#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)
熱門文章
-
計算你上學期加權平均
-
借錢500萬,年利18%,每月複利計算,請問連本帶利的金額 5, 10, 15, 20, 25, 30, 35, 40, 45, 50年的金額。並比較公式: A*exp(0.18n) A*(1+0.18/12)^(12*n), n=年數, A=本金 hint: math.h, p...
-
產生50個元素的陣列並排序
-
11!=?
-
計算你的BMI
-
請輸出如下 * ** *** **** ***** ******
-
請用CPU-Z軟體檢測Cache & Memory 註:快取(L1-L3: SRAM) 第一級快取(L1)–通常存取只需要幾個週期,通常是幾十個KB。 第二級快取(L2)–比L1約有2到10倍較高延遲性,通常是幾百個KB或更多。 第三級快取(L3)(不...
-
金鑰總數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 那由...
-
寫一個是否上學期成績2/3的程式
沒有留言:
張貼留言