print mouse input points and segments

Signed-off-by: Panagiotis Cheilaris <philaris@cs.ntua.gr>
This commit is contained in:
Panagiotis Cheilaris 2013-04-28 19:04:20 +02:00
parent 82fb43fcb0
commit 591e821e01
1 changed files with 3 additions and 1 deletions

View File

@ -81,10 +81,11 @@ private:
if(p != q){ if(p != q){
wh = svd.insert(*it); wh = svd.insert(*it);
svd.insert(vh,wh); svd.insert(vh,wh);
std::cout << "s " << p << " " << q << std::endl;
vh = wh; vh = wh;
p = q; p = q;
} else { } else {
std::cout << "duplicate point: " << p << std::endl; std::cout << "duplicate point: " << p << std::endl;
} }
} }
emit(changed()); emit(changed());
@ -210,6 +211,7 @@ MainWindow::processInput(CGAL::Object o)
if(CGAL::assign(points, o)){ if(CGAL::assign(points, o)){
if(points.size() == 1) { if(points.size() == 1) {
svd.insert(points.front()); svd.insert(points.front());
std::cout << "p " << points.front() << std::endl;
} }
else { else {
/* /*