Hi all,

I'm using Qwt3D to create a 3D "line plot." All is working perfectly in this way:

Qt Code:
  1. PlotWindow3D::PlotWindow3D(QWidget *parent, PTModel *ptm)
  2. : QWidget(parent)
  3. {
  4. ui.setupUi(this);
  5.  
  6. Qwt3D::SurfacePlot *sp = new Qwt3D::SurfacePlot(this);
  7. ui.verticalLayout->addWidget(sp);
  8. sp->setPlotStyle(Qwt3D::WIREFRAME);
  9.  
  10. Qwt3D::TripleField tf;
  11. Qwt3D::CellField cf;
  12. Qwt3D::Cell c1;
  13.  
  14. tf.clear();
  15. cf.clear();
  16. c1.clear();
  17.  
  18. const QModelIndex mi;
  19. dvector dvx = ptm->getColumn("x");
  20. dvector dvy = ptm->getColumn("y");
  21. dvector dvz = ptm->getColumn("z");
  22. for (unsigned i = 0; i < dvx.size(); i++) {
  23. tf.push_back(Qwt3D::Triple(dvx[i], dvy[i], dvz[i]));
  24. c1.push_back(i);
  25. }
  26. cf.push_back(c1);
  27.  
  28. sp->loadFromData(tf, cf);
  29.  
  30. sp->setRotation(30,0,15);
  31. sp->setShift(0.15,0,0);
  32. sp->coordinates()->axes[Qwt3D::X1].setLabelString("x-axis");
  33. sp->coordinates()->axes[Qwt3D::Y1].setLabelString("y-axis");
  34. sp->coordinates()->axes[Qwt3D::Z1].setLabelString("z-axis");
  35.  
  36. sp->setCoordinateStyle(Qwt3D::FRAME);
  37.  
  38. sp->updateData();
  39. sp->updateGL();
  40.  
  41. }
To copy to clipboard, switch view to plain text mode 

With one exception: the plot automatically connects the first and last points of the curve. Assumedly, this is to create a surface, but is not what I'm looking for.

Any ideas as to how to turn this off?

Also, if there are any Qwt3D-specific forums in which to pose this question, please advise as such.

Be well....