← Back to team overview

yade-dev team mailing list archive

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

 

> 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




Follow ups

References