If you have v7 or v8 of acrobat you can go straight from VRML to RH files and to pdf. I notice that adobe appears to dropped support for 3d authoring for some formats in recent versions of acrobat (v9 and v10). If you have recent versions you will need to use the u3d format. Another option is to convert to u3d using free MeshLab software...
Great code works perfectly for my problem which was a small matrix (47x47) and didn't have much node connection redundancy. I had lots of issues with the dijkstra algorithms which kept returning 'inf' results - although I suspect connection redundancy was the issue here.