Hi Robert,

Sorry it took me so long to answer. Your algorithm worked just fine, thank you!

However, i'm having another trouble now. After the surface is generated everything is alright, i save it as a .jvxl file, then when i try to load it to the same molecule, the surface and the molecule don't match, it seems they have different coordinates. So i would like to know what i'm doing wrong.