wrap float matrix

Feb 4, 2008 at 12:54pm

wrap float matrix

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.

#35647
Feb 6, 2008 at 12:19pm

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

#121702
Feb 6, 2008 at 12:47pm

Cheers Nesa,

I’ll give that a go!

#121703

You must be logged in to reply to this topic.