Skip to content

Instantly share code, notes, and snippets.

@p2or
Forked from keijiro/mesh_to_pointcloud.md
Created October 15, 2018 12:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save p2or/407b182d752a696cb982bacdca6158b2 to your computer and use it in GitHub Desktop.
Save p2or/407b182d752a696cb982bacdca6158b2 to your computer and use it in GitHub Desktop.
How to convert a mesh into a point cloud #Houdini

screenshot

  1. Import the source geometry.
  2. Append a Point Wrangle SOP and set the following snippet.
int vlist[] = pointvertices(0, @ptnum);
vector uv = vertex(0, "uv", vlist[0]);
@Cd = colormap("$HIP/TEXTURE_FILENAME.jpg", uv);
  1. Insert a Delete SOP. Change the pattern to "*". Enable "Keep Points".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment