Pardon this being a code-only post, but I figured it might be useful to anyone doing work with both OpenMetaverse and OpenSim - currently we store primitive data in a fairly different manner internally, this code converts between the two, and allows you to take a OpenMV.Primitive and get a OpenSim SOP out of it.
