Skip to content

Instantly share code, notes, and snippets.

@seagullinfinity
seagullinfinity / mesh_to_pointcloud.md
Created September 3, 2019 16:59 — forked from keijiro/mesh_to_pointcloud.md
How to convert a mesh into a point cloud with 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".
@seagullinfinity
seagullinfinity / MainApp.java
Created December 8, 2018 11:43 — forked from KrabCode/MainApp.java
Movable borderless processing window
import processing.core.PApplet;
import java.awt.*;
public class MainApp extends PApplet {
int surfacePosX = 1250;
int surfacePosY = 500;
Point mouse = new Point(0, 0);
Point pmouse = new Point(0, 0);