wrap float matrix

    Feb 04 2008 | 12:54 pm
    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.

    • Feb 06 2008 | 12:19 pm
      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)
      jit.op @expr wrap @val someValue
      best, nesa
    • Feb 06 2008 | 12:47 pm
      Cheers Nesa,
      I'll give that a go!