/* $Id$
*
* Copyright (c) 2010 Anders Wallin (anders.e.e.wallin "at" gmail.com).
*
* This file is part of OpenCAMlib
* (see https://github.com/aewallin/opencamlib).
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 2.1 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see .
*/
#ifndef POINTDROPCUTTER_H
#define POINTDROPCUTTER_H
#include
#include
#include
#include "clpoint.hpp"
#include "millingcutter.hpp"
#include "kdtree.hpp"
#include "operation.hpp"
namespace ocl
{
class STLSurf;
class Triangle;
/// run drop-cutter on an STL-surface at a single input CLPoint
class PointDropCutter : public Operation {
public:
PointDropCutter();
virtual ~PointDropCutter() {
//std::cout << " ~PointDropCutter() \n";
delete root;
}
void setSTL(const STLSurf &s);
void run(CLPoint& cl);
void run() {
std::cout << "ERROR: can't call run() on PointDropCutter()\n";
assert(0);
}
protected:
/// first simple implementation of this operation
void pointDropCutter1(CLPoint& clp);
};
} // end namespace
#endif