Meshlab把點雲文件轉換爲網格模型

目的:把點雲文件(ply格式)轉換爲帶紋理的網格模型(obj或其餘格式)app

輸入:ply文件,點雲模型ide

輸出:obj文件,網格模型spa

---------------------------------------------------------------------3d

首先,導入點雲模型,File -> Import Meshorm

 

 點雲模型旁邊有一些雜點,能夠選擇select vertexes 把雜點刪掉。blog

 

 點擊紅框的show layer dialog,右側顯示圖層。it

 

 而後計算頂點的法向量,Filters ->Normals,Curvatures and Orientation -> Compute normals for Point setsio

 

我設置的參數爲30 class

 

 而後進行泊松重建,Filters -> Point set -> Surface Reconstruction:Poissonselect

 

個人參數設置以下,能夠根據本身狀況更改,Octree depth越大,越精細,時間越慢。 

 

 重建的效果以下:接下來還要進行一系列操做,

點擊 Filters -> Selection -> Select faces with edges longer than

 

 紅色的面片爲須要刪除的多餘面片,本身設置合適的參數,我設置爲了默認

 

 刪除後以下,不是很精細,由於個人點雲密度問題。

 

 選擇Render -> Lighting -> Double side lighting

 

 效果以下,把一些多餘的小碎面片刪除。

 

 獲得以下,接下來處理紋理問題。

 

 右側選中點雲模型,選擇 Filter ->Sampling -> Vertex Attribute Transfer ,

 

 參數爲默認,點擊apply

 

 而後右側選中Poisson Mesh,點擊 Render -> Color -> Per Vertex

 

 結果以下,

 

 接下來進行保存,點擊 File -> Export Mesh As,重命名後選擇obj文件類型便可。

 

 

-----------------------------------------------------------------------

但願能對你有所幫助。(*^▽^*)

相關文章
相關標籤/搜索