Sourcefiles/helperfunctions.cpp
/**
 * @fn void generateClusterHull(unsigned int layers)
 * @brief hull to the clusterGeneratorFunction as thats just bad usage
 * @param layers
 */
@fn void generateClusterHull(unsigned int layers)
@brief hull to the clusterGeneratorFunction as thats just bad usage
@param layers
@fn void generateClusterHull ( unsigned int layers ) @brief hull to the clusterGeneratorFunction as thats just bad usage @param layers
void generateClusterHull(unsigned int layers, std::string location) {
    std::string particleName = "Au";
    std::string layersString = std::to_string(layers);
    std::string distance = std::to_string(4.079 / sqrt(2));
    std::string filename = location + "/cluster" + layersString +".xyz";
    std::filesystem::path path{filename};
    if (std::filesystem::exists(path) == false) {
        char *msg[4];
        msg[0] = (char*)particleName.c_str();
        msg[1] = (char*)layersString.c_str();
        msg[2] = (char*)distance.c_str();
        msg[3] = (char*)filename.c_str();
        generateCluster(4,msg);
    }
}
void generateClusterHull ( unsigned int layers , std :: string location ) { std :: string particleName = " " ; std :: string layersString = std :: to_string ( layers ) ; std :: string distance = std :: to_string ( 4.079 / sqrt ( 2 ) ) ; std :: string filename = location + " " + layersString + " " ; std :: filesystem :: path path { filename } ; if ( std :: filesystem :: exists ( path ) == false ) { char * msg [ 4 ] ; msg [ 0 ] = ( char * ) particleName . c_str ( ) ; msg [ 1 ] = ( char * ) layersString . c_str ( ) ; msg [ 2 ] = ( char * ) distance . c_str ( ) ; msg [ 3 ] = ( char * ) filename . c_str ( ) ; generateCluster ( 4 , msg ) ; } }
@fn void generateClusterHull(unsigned int layers)
 @brief hull to the clusterGeneratorFunction as thats just bad usage
 @param layers
@fn void generateClusterHull ( unsigned int layers ) @brief hull to the clusterGeneratorFunction as thats just bad usage @param layers
//only generate if it does not exist