I am using OpenBabel 2.1.1 under Windows. When translating a file (of any format) into .pov (povray), teh atoms are declared with the path of the initial file when it will be better if the are declared with the type of atom.
Example with the water molecule as produced by OpenBabel (I have attached what I think it is a more reasonable file):
//Coodinates of atoms 1 - 3
//Povray-description of atoms 1 - 3
Atom_O translate D:\imartinez\Mes_images\nanoseries\water6_pos_1 }
Atom_H translate D:\imartinez\Mes_images\nanoseries\water6_pos_2 }
Atom_H translate D:\imartinez\Mes_images\nanoseries\water6_pos_3 }
//Povray-description of bonds 1 - 2
bond_1 scale <1.11045,1.0000,1.0000> rotate <0.0000,0.0000,70.5371> rotate <0.0000,-180,0.0000> translate D:\imartinez\Mes_images\nanoseries\water6_pos_1 }
bond_1 scale <1.11,1.0000,1.0000> translate D:\imartinez\Mes_images\nanoseries\water6_pos_1 }
union { object { bond_1 pigment{color Color_O3} scale <0.555227,1.0000,1.0000> rotate <0.0000,0.0000,70.5371> rotate <0.0000,-180,0.0000> translate D:\imartinez\Mes_images\nanoseries\water6_pos_1 } object { bond_1 pigment{color Color_H} scale <0.555227,1.0000,1.0000> rotate <0.0000,0.0000,250.537> rotate <0.0000,-180,0.0000> translate D:\imartinez\Mes_images\nanoseries\water6_pos_2 } } }
union { object { bond_1 pigment{color Color_O3} scale <0.555,1.0000,1.0000> translate D:\imartinez\Mes_images\nanoseries\water6_pos_1 } object { bond_1 pigment{color Color_H} scale <0.555,1.0000,1.0000> rotate <0.0000,0.0000,180> translate D:\imartinez\Mes_images\nanoseries\water6_pos_3 } } }
//All atoms of molecule D:\imartinez\Mes_images\nanoseries\water6
object{D:\imartinez\Mes_images\nanoseries\water6_atom1} object{D:\imartinez\Mes_images\nanoseries\water6_atom2} object{D:\imartinez\Mes_images\nanoseries\water6_atom3} }
//Bonds only needed for ball and sticks or capped sticks models
object{D:\imartinez\Mes_images\nanoseries\water6_bond0} object{D:\imartinez\Mes_images\nanoseries\water6_bond1} }
//Definition of molecule D:\imartinez\Mes_images\nanoseries\water6
D:\imartinez\Mes_images\nanoseries\water6_atoms
object{D:\imartinez\Mes_images\nanoseries\water6_atoms}
difference { object{D:\imartinez\Mes_images\nanoseries\water6_bonds} object{D:\imartinez\Mes_images\nanoseries\water6_atoms} }
object{D:\imartinez\Mes_images\nanoseries\water6_bonds}
// bounded_by {
// box {
// <-5.544,-3,-3>
// <3,6.053,3>
}
//Center of molecule D:\imartinez\Mes_images\nanoseries\water6 (bounding box)
Thank you,
Irene Suarez
(irene.suarez/at/crns-imn.fr)
suggestion of a water molecule in a more reasonable povray format
water molecule as produced by openBabel
Logged In: YES
user_id=850620
Originator: NO
Attaching file from duplicate bug 1884384...
File Added: water-OpenBabel2.1.1.pov
Logged In: YES
user_id=21420
Originator: NO
This is more of a feature suggestion...