public static IMolecule getMoleculeWith2DCoords(IMolecule inputMol) throws Exception {
return getInstance().getMoleculeStructure(inputMol);
}
private MultiFragmentStructureDiagramGenerator() {
th = new TemplateHandler(DefaultChemObjectBuilder.getInstance());
try {
ResourceGetter rg = new ResourceGetter("uk/ac/cam/ch/wwmm/ptclib/cdk/resources/");
for(String s : rg.getStrings("extraTemplates.txt")) {
if(s != null && s.length() > 0) th.addMolecule(StructureConverter.cmlToMolecule(rg.getStream(s)));
}