Converting point cloud to mesh?

Ernest's icon

Is anyone else converting point clouds to meshes now? I think I could make a patch for that and share it by exporting to Meshlab. I don't have Kinect, but research indicates that's the most common cause of the need.

Spa's icon

I did a simple geometry shader to convert the point cloud in max to triangles output with only near-ones connected.
I will be very interested to see a source code for doing the same in the max matrix domain.
do you have any source code to share...
i will try it anyway in java.

ćwiek's icon

i think that this patch can help you:

Max Patch
Copy patch and select New From Clipboard in Max.

`

Ernest's icon

Hmm, That shows how luminance can create a mesh from a 2D image inside Jitter, without .OBJ export. Interesting )

Ernest's icon

What I found so far, for export to Meshlab, is a recently renewed thread on .obj export via a JavaScript routine here:

and what seems to be a useful object for this:JIT.SPILL, which outputs a data in separate planes, hence for example:

[jit.matrix 3 float32 10 3]
-> [jit.spill @plane 0 @listlengeth 10]
-> [jit.spill @plane 1 @listlengeth 10]
-> [jit.spill @plane 2 @listlengeth 10]

Each of which can feed into COLL and sorted by ZL, but I haven't made collections in MAX before, so this could take a while... An expert could do it all in JIT.GEN, I'm sure, but it's too opaque for me to develop that way. I find JIT.SPILL helpful as a jitter beginner, because it can connect to the right inlet of a MESSAGE object and display the results on the screen while I'm figuring it out.

Rajan Craveri's icon

SPA I'm interested in view your geometry shader if you can share it, I'm trying to do the same thing.
Thanks