1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
# -*- coding: utf-8 -*-
# PCLPlotter
# http://pointclouds.org/documentation/tutorials/pcl_plotter.php#pcl-plotter
import pcl
# //defining a plotter
# pcl::visualization::PCLPlotter * plotter = new PCLPlotter ();
#
# //defining the polynomial function, y = x^2. Index of x^2 is 1, rest is 0
# vector<double> func1 (3,0);
# func1[2] = 1;
#
# //adding the polynomial func1 to the plotter with [-10, 10] as the range in X axis and "y = x^2" as title
# plotter->addPlotData (func1, -10, 10, "y = x^2");
#
# //display the plot, DONE!
# plotter->plot ();
|