本文整理汇总了C++中Connections::writeBinaryVTK方法的典型用法代码示例。如果您正苦于以下问题:C++ Connections::writeBinaryVTK方法的具体用法?C++ Connections::writeBinaryVTK怎么用?C++ Connections::writeBinaryVTK使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Connections
的用法示例。
在下文中一共展示了Connections::writeBinaryVTK方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
if (qApp->arguments().indexOf(QRegExp("-help"))!=-1 || qApp->arguments().length()==1) {
qDebug() << "bundler (-nodes <nodes> -cons <connections> / -fib <.fib-file>) [-c_thr <compatibility threshold>] [-start_i <iterations in 1st cycle>] [-numcycles <number of cycles>]";
return 1;
}
qDebug() << "nodesname: " + arg("nodes");
qDebug() << "consname: " + arg("cons");
Connections* cons;
if (arg("cons")!="") {
cons = new Connections(arg("nodes"),arg("cons"));
} else if (arg("fib")!="") {
cons = new Connections(arg("fib"));
} else {
qDebug() << "no dataset given";
return 0;
}
if (arg("c_thr")!="") cons->c_thr = arg("c_thr").toDouble();
if (arg("start_i")!="") cons->start_i = arg("start_i").toInt();
if (arg("numcycles")!="") cons->numcycles = arg("numcycles").toInt();
qDebug() << cons->name();
cons->fullAttract();
if (arg("out")!="") {
cons->writeBinaryVTK(arg("out"));
} else {
cons->writeBinaryVTK();
}
return 1;
}