Skip to content

Instantly share code, notes, and snippets.

@SeungBack
Last active December 20, 2024 19:02
Show Gist options
  • 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.

@Velo-Mane
Copy link

Thank you for these instructions!

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