![]() |
![]()
| ![]() |
![]()
NAMEChemistry::File::VRML - Generate VRML models for molecules SYNOPSISuse Chemistry::File::PDB; use Chemistry::File::VRML; use Chemistry::Bond::Find 'find_bonds'; my $mol = Chemistry::Mol->read('test.pdb'); find_bonds($mol, orders => 1); $mol->write('test.wrl', format => 'vrml', center => 1, style => 'ballAndWire', color => 'byAtom', ); DESCRIPTIONThis module generates a VRML (Virtual Reality Modeling Language) representation of a molecule, which can then be visualized with any VRML viewer. This is a PerlMol file I/O plugin, and registers the 'vrml' format with Chemistry::Mol. Note however that this file plugin is write-only; there's no way of reading a VRML file back into a molecule. This module is a modification of PDB2VRML by Horst Vollhardt, adapted to the Chemistry::File interface. OPTIONSThe following options may be passed to $mol->write.
AUTHORPDB2VRML originally by Horst Vollhardt, horstv@yahoo.com, 1998. Modified and adapted as Chemistry::File::VRML by Ivan Tubert-Brohman, itub@cpan.org, 2005. COPYRIGHTPDB2VRML Copyright (c) 1998 by Horst Vollhardt. All rights reserved. Chemistry::File::VRML modifications Copyright (c) 2005 by Ivan Tubert-Brohman. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. SEE ALSOPDB2VRML found at http://www.realitydiluted.com/mirrors/reality.sgi.com/horstv_basel/pdb2vrml/ PerlMol project at http://www.perlmol.org/
|