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.  
  9. sp->setPlotStyle(Qwt3D::WIREFRAME);
  10.  
  11. //do blue....
  12. Qwt3D::RGBA rgba;
  13. rgba.r = 0.0;
  14. rgba.g = 0.0;
  15. rgba.b = 1.0;
  16. sp->setMeshColor(rgba);
  17.  
  18. Qwt3D::TripleField tf;
  19. Qwt3D::CellField cf;
  20. Qwt3D::Cell c1;
  21.  
  22. tf.clear();
  23. cf.clear();
  24. c1.clear();
  25.  
  26. const QModelIndex mi;
  27. dvector dvx = ptm->getColumn("x");
  28. dvector dvy = ptm->getColumn("y");
  29. dvector dvz = ptm->getColumn("z");
  30. for (unsigned i = 0; i < dvx.size(); i++) {
  31. tf.push_back(Qwt3D::Triple(dvx[i], dvy[i], dvz[i]));
  32. c1.push_back(i);
  33. }
  34. cf.push_back(c1);
  35.  
  36. sp->loadFromData(tf, cf);
  37.  
  38. sp->setRotation(30,0,15);
  39. sp->setShift(0.15,0,0);
  40. sp->coordinates()->axes[Qwt3D::X1].setLabelString("x-axis");
  41. sp->coordinates()->axes[Qwt3D::Y1].setLabelString("y-axis");
  42. sp->coordinates()->axes[Qwt3D::Z1].setLabelString("z-axis");
  43.  
  44. sp->setMeshLineWidth(2);
  45.  
  46. sp->setCoordinateStyle(Qwt3D::FRAME);
  47.  
  48. sp->updateData();
  49. sp->updateGL();
  50.  
  51. }
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....