Skip to content

Instantly share code, notes, and snippets.

@SeungBack
Last active March 12, 2024 09:11
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save SeungBack/e71eac0faa52088e3038395fef684494 to your computer and use it in GitHub Desktop.
Save SeungBack/e71eac0faa52088e3038395fef684494 to your computer and use it in GitHub Desktop.
How to convert .obj to .ply, with colored vertices and triangular faces

How to convert .obj to .ply, with colored vertices and triangular faces

  1. open the meshlab and import *.obj file
  2. centralize the mesh
Filters -> Normals, Curvatures and Orientations ->
Transform: Move, Translate, Center -> 
check translate center of bbox to the origin -> Apply
  1. subdivide mesh
Filters -> Remeshing, Simplication and Reconstruction -> 
Subdivision Surfaces:Midpoint -> Adjust Iterations and Apply
  1. colorize vertexs using uv texture
Filters -> Color creation and Processing ->
Transfer Color:Texture to vertex
  1. triangularize faces
Filters -> Polygonal and Quad Mesh -> Turn in to a Pure-Triangular Mesh
  1. Export mesh as ply
File -> Export mesh as -> ply -> Check only color (vertice), Normal (vertice), Binary encoding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment