Updated for Coin3D compatibility.