I've done a bit of 3D printing of proteins. I found links in the previous
thread VRML2 export and edu pymol
<https://sourceforge.net/p/pymol/mailman/message/35012597/>helpful.

STL is the best supported format for the printers, but since it's not
supported by pymol I've used VRML2 (.wrl). Fortunately free tools to
convert are readily available. A bigger problem is ensuring that the
exported geometry is manifold. I've always had to do some cleanup in a 3D
modeling program (e.g. blender, sketchup, etc) to get 3D printing software
like Slic3r to accept it. Algorithms to automatically merge all geometry
would be really nice if you're improving Jmol's export functionality.

You don't need to worry about support material. That should be handled by
the slicing software, since it needs to know about the printer hardware to
be generated efficiently.

-Spencer


On Mon, Oct 3, 2016 at 9:50 PM, Sampson, Jared M. <jms2...@cumc.columbia.edu
> wrote:

> Hi Bob -
>
> I also haven't done much of anything with 3D printing myself, but having
> worked on the COLLADA exporter as one of my POSF fellowship projects, I can
> share some info about the formats themselves and what data is being
> included in the output files.
>
> > Q: What output file types are supported? (WRL, X3D, STL[ASCII/binary],
> other)
>
> The list on the Save wiki page is fairly complete.  It reads:
>
> "The file format is autodetected if the extension is .pdb, .pqr, .mol,
> .sdf, .pkl, .pkla, .mmd, .out, .dat, .mmod, .pmo, .pov, .png, .pse, .psw,
> .aln, .fasta, .obj, .mtl, .wrl, .idtf, .dae, or .mol2."
>
> The 3D formats among these (that I recognize, anyway) are .obj (Wavefront
> Object), .mtl (Wavefront Material), .wrl (VRML2), .idtf (Intermediate Data
> Text Format), and .dae (COLLADA).
>
>
> > Q: Does the generation of these include algorithms for ensuring closure
> or for stitching together objects in order to not have ragged overlap?
>
> I'm not sure what you mean by "stitching together objects," but in
> general, as long as you have fully closed surfaces, it shouldn't be an
> issue.  The only situation I can think of that would be problematic is if
> you had clipping panes that cut through the object's representation and end
> up with a hollow, infinitesimally thin shell.  That would be pretty
> difficult to print.  :)
>
> > Q: What is needed to add support struts so that the model is connected
> and strong enough?
>
> No, this is related to what Paul was asking about recently.  My guess is
> some 3D printing software or sites might have more appropriate tools to put
> these in, although you could do it manually (and probably quite tediously)
> with CGO cylinders or distance dashes with dash_gap = 0 if you know the
> orientation you want to use.
>
> > Q: If features are not amenable to printing (labels,  perhaps?), are
> they automatically ignored? Need to be manually removed?
>
> As far as I know, none of the supported 3D formats include labels in their
> exported data.  Each one has its own implementation, but in general,
> representations stored within PyMOL as triangle meshes (surfaces and
> cartoons, primarily, although you can get everything as triangles with `set
> use_shaders, 0`) are supported by all of them.  The COLLADA exporter also
> handles spheres, cylinders, sausages (i.e. rounded cylinders, such as ) and
> cones.  VRML2 includes spheres, cylinders and sausages.  The .obj exporter
> has a bug in sphere export that I looked at about a year ago but got busy
> and didn't actually follow through on.  The others I don't know enough
> about to comment, but hopefully this gets you on the right track.
>
> If you want to look further into it, check out the
> RayRender{VRML2,IDTF,ObjMtl,COLLADA} functions in layer1/Ray.cpp or
> layer1/COLLADA.cpp and look for cPrimTriangle, cPrimSphere, etc. for the
> various primitive types.
>
> Hope that helps!
>
> Cheers,
> Jared
>
>
>
> >
> > Thanks,
> >
> > Bob Hanson
> > ------------------------------------------------------------
> ------------------
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, SlashDot.org! http://sdm.link/slashdot______
> _________________________________________
> > PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
> > Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
> > Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net
>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
> Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
> Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Reply via email to