consolidate rGeometry rendering code