12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- #ifndef IGL_INTERSECT_OTHER_H
- #define IGL_INTERSECT_OTHER_H
- #include <igl/igl_inline.h>
- #include <Eigen/Dense>
- #ifdef MEX
- # include <mex.h>
- # include <cassert>
- # undef assert
- # define assert( isOK ) ( (isOK) ? (void)0 : (void) mexErrMsgTxt(C_STR(__FILE__<<":"<<__LINE__<<": failed assertion `"<<#isOK<<"'"<<std::endl) ) )
- #endif
- namespace igl
- {
- // INTERSECT Given a triangle mesh (V,F) and another mesh (U,G) find all pairs
- // of intersecting faces. Note that self-intersections are ignored.
- //
- // [VV,FF,IF] = selfintersect(V,F,'ParameterName',ParameterValue, ...)
- //
- // Inputs:
- // V #V by 3 list of vertex positions
- // F #F by 3 list of triangle indices into V
- // U #U by 3 list of vertex positions
- // G #G by 3 list of triangle indices into U
- // first_only whether to only detect the first intersection.
- // Outputs:
- // IF #intersecting face pairs by 2 list of intersecting face pairs,
- // indexing F and G
- //
- // See also: selfintersect
- IGL_INLINE void intersect_other(
- const Eigen::MatrixXd & V,
- const Eigen::MatrixXi & F,
- const Eigen::MatrixXd & U,
- const Eigen::MatrixXi & G,
- const bool first_only,
- Eigen::MatrixXi & IF);
- }
- #ifdef IGL_HEADER_ONLY
- # include "intersect_other.cpp"
- #endif
-
- #endif
|