freebsd-ports/math/carve/files/patch-src_extrude.cpp
Pietro Cerutti 2bbecf479f - New port: math/carve
Carve is a C++ library designed to perform boolean operations between two
  arbitrary polygonal meshes. The standard union and intersection operations
  are supported, as are symmetric and asymmetric difference. It is also
  possible to implement custom operations using Carve, allowing results to be
  formed from any combination of inputs.
  Carve supports a variety of inputs, including both closed and open surfaces,
  faces with arbitrary edge counts and datasets with multiple disjoint,
  embedded or touching surfaces. Carve can also interpolate arbitrary values
  across faces, meaning that CSG operations need not discard colour, texture
  coordinates or other data.

  WWW: http://code.google.com/p/carve/
2012-02-20 10:56:06 +00:00

10 lines
266 B
C++

--- src/extrude.cpp.orig 2011-12-01 11:57:16.000000000 +0100
+++ src/extrude.cpp 2011-12-01 11:59:06.000000000 +0100
@@ -31,6 +31,7 @@
#include "write_ply.hpp"
#include <iostream>
+#include <stdexcept>
template<unsigned ndim>
carve::geom::vector<ndim> lerp(