Don't sew overly complex geometries even as part of boolean operations #455

This commit is contained in:
Thomas Krijnen
2018-09-12 16:44:30 +02:00
parent 12623dd1e5
commit 0df2bfadef
2 changed files with 31 additions and 1 deletions
+17
View File
@@ -73,6 +73,23 @@ if ( it != cache.T.end() ) { e = it->second; return true; }
#endif
namespace IfcGeom {
class IFC_PARSE_API geometry_exception : public std::exception {
protected:
std::string message;
public:
geometry_exception(const std::string& m)
: message(m) {}
virtual ~geometry_exception() throw () {}
virtual const char* what() const throw() {
return message.c_str();
}
};
class IFC_PARSE_API too_many_faces_exception : public geometry_exception {
public:
too_many_faces_exception()
: geometry_exception("Too many faces for operation") {}
};
class IFC_GEOM_API Cache {
public: