← Back to team overview

yade-dev team mailing list archive

Re: [Branch ~yade-dev/yade/trunk] Rev 2221: subscribedBodies parameter is added to VTKRecorder

 

Looks interesting, I did not know about that groupMask :)

I'm just afraid, will it not conflict with Vincent's  predefined masks?
______________________________

Anton Gladkyy


2010/5/13 Václav Šmilauer <eudoxos@xxxxxxxx>

> > I was thinking about how to better implement it, and did not find a
> > better solution.
>
> A bitmask? Then you would have
>
> FOREACH(.. b,...){
>        // skip bodies with non-matching groupMask if mask is non-zero
>        // otherwise use all bodies
>        if(mask!=0 && (b->groupMask & mask)==0) continue;
>        /* do stuff here */
> }
>
> Just a suggestion.
>
> v
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-dev<https://launchpad.net/%7Eyade-dev>
> Post to     : yade-dev@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-dev<https://launchpad.net/%7Eyade-dev>
> More help   : https://help.launchpad.net/ListHelp
>

Follow ups

References