mirror of https://github.com/CGAL/cgal
print mouse input points and segments
Signed-off-by: Panagiotis Cheilaris <philaris@cs.ntua.gr>
This commit is contained in:
parent
82fb43fcb0
commit
591e821e01
|
|
@ -81,10 +81,11 @@ private:
|
|||
if(p != q){
|
||||
wh = svd.insert(*it);
|
||||
svd.insert(vh,wh);
|
||||
std::cout << "s " << p << " " << q << std::endl;
|
||||
vh = wh;
|
||||
p = q;
|
||||
} else {
|
||||
std::cout << "duplicate point: " << p << std::endl;
|
||||
std::cout << "duplicate point: " << p << std::endl;
|
||||
}
|
||||
}
|
||||
emit(changed());
|
||||
|
|
@ -210,6 +211,7 @@ MainWindow::processInput(CGAL::Object o)
|
|||
if(CGAL::assign(points, o)){
|
||||
if(points.size() == 1) {
|
||||
svd.insert(points.front());
|
||||
std::cout << "p " << points.front() << std::endl;
|
||||
}
|
||||
else {
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in New Issue