mirror of
https://github.com/chemistry-software/raymol.git
synced 2026-11-07 09:17:32 +00:00
ff9cd52ea14dc15962da68ddf033e661845aa2aa
SDF Molfile parser and molecule renderer with Raylib
Compilation
zig cc -o test -lraylib -L /usr/local/lib -I /usr/local/include main.c -DDEBUG
or
gcc $(pkg-config --cflags raylib) -L/usr/local/lib main.c -lraylib -lGL -lm -lpthread -ldl -lrt -lX11 -o ass -DDEBUG
Or without DEBUG flag to omit debug logging
Example files
SDF molfiles of ethanol and methyl vinyl ketone are available. 3D SVG images were generated from these using OpenBabel for comparison with the Raymol output. Conversion command:
obabel methyl-vinyl-ketone.sdf -Omethyl-vinyl-ketone.svg -xS
By @bdnugget
Languages
C
100%