The current implementation of sphere geometry export when saving in Wavefront .OBJ format (save myfile.obj
) is incomplete. For a simple pseudoatom at the origin (pseudoatom ps; as spheres; save ps.obj
), the file looks like this:
v 0.000000 0.000000 0.000000 v 0.000000 0.000000 0.000000 v 0.000000 0.000000 0.000000 f 1 2 3
This means that the sphere is given 3 vertices (v
) that are connected into a single face (f
). But since all the vertices have the same coordinates, it basically gets rendered as a point, which is decidedly not what we want, and renders infinitesimally (if at all) in graphics viewers.
I'm currently working on a patch for this using the SphereRec
struct from 'layer0/Sphere.h' and will submit it here and to the developers when it's finished.
Cheers,
Jared