Convert atoms array (N-by-1) and coordinates array (N-by-3) to .obj file use specified style and options.
Material templates are defined in MolViewer.mtl.
Syntax
acr2obj(objPath,atoms,coordinates)
acr2obj(objPath,atoms,coordinates,style)
acr2obj(objPath,atoms,coordinates,style,option1,option2,...,optionN)
Description
acr2obj(objPath,atoms,coordinates) converts atoms array (N-by-1) and coordinates array (N-by-3) to .obj file in current folder.
acr2obj(objPath,atoms,coordinates,style,option1,option2,...,optionN) uses specified style and options to convert files. These parameters’ effects are the same as those in showmol().
Examples
convert Methane molecule to Methane.obj.
atoms=[6;1;1;1;1];
coordinates=[0 , 0 , 0 ;...
0.62957749, 0.62957749, 0.62957749;...
-0.62957749,-0.62957749, 0.62957749;...
-0.62957749, 0.62957749,-0.62957749;...
0.62957749,-0.62957749,-0.62957749];
acr2obj('Methane.obj',atoms,coordinates);
PREVIOUSChange log
NEXTcub2mat