/* (non-Javadoc)
* @see ca.eandb.jmist.framework.SceneElement#intersect(int, ca.eandb.jmist.math.Ray3, ca.eandb.jmist.framework.IntersectionRecorder)
*/
public void intersect(final int index, Ray3 ray, IntersectionRecorder recorder) {
primitives.get(index).intersect(ray, new IntersectionRecorderDecorator(recorder) {
public void record(Intersection intersection) {
inner.record(new IntersectionDecorator(intersection) {
protected void transformShadingContext(
ShadingContext context) {
context.setPrimitiveIndex(index);