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){
|
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 {
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue