Package org.openscience.cdk.interfaces

Examples of org.openscience.cdk.interfaces.IMolecule.atoms()


          if(mol != null) {
            StructureConverter.configureMolecule(mol);         
            makeStructure = !MultiFragmentStructureDiagramGenerator.hasStructure(mol);
            if(mol.getAtomCount() == 1) makeStructure = true;
           
            for (Iterator<IAtom> iterator = mol.atoms(); iterator.hasNext();) {//remove explicit hydrogen and make hydrogens properties of atoms to make viewing easier
              IAtom a = iterator.next();
              int hydrogen =0;
              List<IAtom> neighbours = mol.getConnectedAtomsList(a);
              for (IAtom neighbour : neighbours) {
                if (neighbour.getAtomicNumber() ==1 ){
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.