wrap float matrix

Brecht's icon

Hiya!

I'm looking for a way to wrap the data in a float matrix. The matrix
contains values which define particles. I would like to define a
"cube" where if a particle exits its bounds, it comes in on the other
side.

grtz.

Brecht.

nesa's icon

Howdy Brecht,

my email is fuck*ng fuck*d up, totally screw*d, so sorry for the lack of example patch.

You can use wrap&fold op's for jit.op or jit.expr:

jit.expr @expr wrap(in[0] , someValue)

or

jit.op @expr wrap @val someValue

best,
nesa

Brecht's icon

Cheers Nesa,

I'll give that a go!