本文整理汇总了C++中Triangulation::Clear方法的典型用法代码示例。如果您正苦于以下问题:C++ Triangulation::Clear方法的具体用法?C++ Triangulation::Clear怎么用?C++ Triangulation::Clear使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Triangulation
的用法示例。
在下文中一共展示了Triangulation::Clear方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
int main(unsigned int argc, char **argv){
vector<unsigned int> partlist;
cdt_skeleton cdt_skel;
vector<cdt_skeleton> cdt_e;
vector<unsigned int> *dimer_count;
Triangulation TestTri;
unsigned int size = 160;
unsigned int dimer_size = 4;
if(argc > 1) size = atoi(argv[1]);
if(argc > 2) dimer_size = atoi(argv[2]);
//printf("No. of Dimers | No. of Configurations\n", size, dimer_size);
for(unsigned int j = 2; j <= size; j = j + 2){
create_CDT_size_n(&cdt_e, j);
//dimer_count = new vector<unsigned int>((unsigned int)(j/2) + 1);
for(unsigned int i = 0; i < cdt_e.size(); i++){
TestTri.Clear();
//TestTri.Create(cdt_e[i]);
//TestTri.GenerateDimerConfigs(dimer_size, dimer_count);
}
cdt_e.clear();
printf("%i\n", j);
//printdimers(dimer_count);
//delete dimer_count;
}
return 0;
}