Joining meshes into one

I’m sure this has been covered somewhere before but how can I join meshes together?

I want to be able to take a mesh, and a spread of transforms as input, then output a single mesh of all of those transformed objects.

My attempt is attached. I think there is some problem with the indices.

Thanks

join mesh problem v2.v4p (18.3 kB)

Ah no it’s apply transform not behaving as I’d expect.

Why would the output spread count of apply transform not be directly proportional to the number of transforms * the number of vertices being transformed?

ApplyTransform behaves the way that all nodes that accept spreads behave. That is that they match up slices of in a 1-to-1 manner between inputs until the max number of slices of any input spread is reached (repeating other input spread slices as needed). This means that if your input takes 72 slices and 2 slices you will get an output of 72 (not 144).

If you want to get more output matrices that this you need to repeat you inputs so that they match up correctly to reproduce the output you want.

Sorry if this sounds a bit obtuse. It took me a while to get my head around it.

I attached a patch that I think fixes your issue. Hope that helps!

-joel

join mesh problem v2.v4p (19.8 kB)

Not obtuse at all!

Why have you had to half the number of vertices to give us the bin size count for the transforms?

Ah… not working with meshes other than box…

join mesh problem v2_1.v4p (19.0 kB)

https://discourse.vvvv.org/t/1471
https://discourse.vvvv.org/t/6396