cheminfo / openchemlib-js

JavaScript port of OpenChemLib
https://cheminfo.github.io/openchemlib-js/index.html
BSD 3-Clause "New" or "Revised" License
71 stars 21 forks source link

[Question]: Is it possible to generate a 3d static image? #118

Closed bylethviva closed 2 years ago

bylethviva commented 2 years ago

Is there any way to generate a static 3d image of a chemical structure from its smile code or similar? Maybe there's something similar to Molecule.toSVG that I've missed somewhere? Thank you!

targos commented 2 years ago

Unfortunately, there is no way to generate a 3D image with this library. You can use the ConformerGenerator to generate 3D coordinates, export the molecule as a Molfile and display it with one of the existing librairies that support it.

bylethviva commented 2 years ago

@targos thank you for that information. Do you have any libraries for 3d image generation that you could recommend?