Ignore:
Timestamp:
Jul 27, 2009, 8:16:03 AM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
0ac84df
Parents:
c3a303
Message:

Split VolumeOfConvexEnvelope() into find_convex_border() and remainder.

  • Convex envelope is not working anymore, in the state of fixing it and trying to refactor code a bit.
  • planned to have VolumeOfConvexEnvelope() to be replaced by VolumeOfEnvelope(), which can also do Non-Convex-Envelopes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/builder.cpp

    rc3a303 r53d153  
    581581      break;
    582582    case 'e':
    583       cout << Verbose(0) << "Evaluating volume of the convex envelope.";
    584       VolumeOfConvexEnvelope((ofstream *)&cout, NULL, configuration, NULL, mol);
     583      {
     584        cout << Verbose(0) << "Evaluating volume of the convex envelope.";
     585        LinkedCell LCList(mol, 10.);
     586        class Tesselation *TesselStruct = NULL;
     587        Find_convex_border((ofstream *)&cout, mol, TesselStruct, &LCList, NULL);
     588        double clustervolume = VolumeOfConvexEnvelope((ofstream *)&cout, TesselStruct, configuration);
     589        delete(TesselStruct);
     590      }
    585591      break;
    586592    case 'f':
     
    18071813                cout << Verbose(0) << "Evaluating volume of the convex envelope.";
    18081814                cout << Verbose(1) << "Storing tecplot data in " << argv[argptr] << "." << endl;
    1809                 VolumeOfConvexEnvelope((ofstream *)&cout, argv[argptr], &configuration, NULL, mol);
     1815                LinkedCell LCList(mol, 10.);
     1816                class Tesselation *TesselStruct = NULL;
     1817                Find_convex_border((ofstream *)&cout, mol, TesselStruct, &LCList, NULL);
     1818                double clustervolume = VolumeOfConvexEnvelope((ofstream *)&cout, TesselStruct, &configuration);
     1819                delete(TesselStruct);
    18101820                argptr+=1;
    18111821              }
Note: See TracChangeset for help on using the changeset viewer.