Namespaces | Defines | Functions

/home/hauberg/Dokumenter/Capture/humim-tracker-0.1/src/OpenTissue/OpenTissue/core/containers/mesh/common/util/mesh_plane_clipper.h File Reference

#include <OpenTissue/configuration.h>
#include <OpenTissue/collision/intersect/intersect_line_plane.h>
#include <utility>
#include <list>
#include <map>

Go to the source code of this file.

Namespaces

namespace  OpenTissue
namespace  OpenTissue::mesh

Defines

#define add_cur_to_above()
#define add_cur_to_below()
#define add_crossing_to_above(p)
#define add_crossing_to_below(p)

Functions

template<typename mesh_type , typename plane_type >
void OpenTissue::mesh::plane_clipper (mesh_type const &mesh, plane_type plane, mesh_type &above, mesh_type &below, double const &tolerance=10e-6)

Define Documentation

#define add_crossing_to_above (   p  ) 
Value:
if(e2a_lut[e_key].is_null()) \
  e2a_lut[e_key] = above.add_vertex(p); \
  handles_above.push_back( e2a_lut[e_key]  );
#define add_crossing_to_below (   p  ) 
Value:
if(e2b_lut[e_key].is_null()) \
  e2b_lut[e_key] = below.add_vertex(p); \
  handles_below.push_back( e2b_lut[e_key]  );
#define add_cur_to_above (  ) 
Value:
if(v2a_lut[cur_idx].is_null()) \
  v2a_lut[cur_idx] = above.add_vertex(cur->m_coord);  \
  handles_above.push_back( v2a_lut[cur_idx]  );
#define add_cur_to_below (  ) 
Value:
if(v2b_lut[cur_idx].is_null()) \
  v2b_lut[cur_idx] = below.add_vertex(cur->m_coord);  \
  handles_below.push_back( v2b_lut[cur_idx]  );