Commit ccc2ede9 authored by Deepak Rangarajan's avatar Deepak Rangarajan
Browse files

switch exception type

parent 8e2c88a2
Loading
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
#include "csg_cgal_helper.hpp"

#include <stdexcept>
#include "csg_exception.hpp"

#include <CGAL/AABB_face_graph_triangle_primitive.h>
#include <CGAL/AABB_traits.h>
@@ -49,7 +48,8 @@ public:
    for (const auto &face : m_faces) {
      B.begin_facet();
      if (!B.test_facet(face.begin(), face.end()))
        throw std::runtime_error(
        throw csg::Exception(
            "Polyhedron builder",
            "Unable to create the polyhedron. test_facet failed. Check input!");

      for (const auto &p_index : face) {