Logo Search packages:      
Sourcecode: pymol version File versions

int(* molfile_plugin_t::write_bonds)(void *, int nbonds, int *from, int *to, float *bondorder)

Write bond information for the molecule. The arrays from and to point to the (one-based) indices of bonded atoms. Each unique bond will be specified only once by the caller. File formats that list bonds twice will need to emit both the from/to and to/from versions of each. This function must be called before write_structure(). Unlike the read_bonds() routine, the bondorder information will always be provided (each bondorder can be set to 1 if unknown). Return MOLFILE_SUCCESS if no errors occur.

Generated by  Doxygen 1.6.0   Back to index