#include "imesh_detect.h"
#include <vcl_algorithm.h>
#include <vcl_limits.h>
#include <vcl_cassert.h>
#include <vil/vil_image_view.h>
#include <vgl/algo/vgl_rotation_3d.h>
#include <vgl/vgl_box_3d.h>
#include <vnl/vnl_math.h>
#include <vnl/vnl_double_3x3.h>
#include <vnl/vnl_double_3.h>
#include <imesh/algo/imesh_project.h>
#include <imesh/algo/imesh_render.h>
#include <imesh/imesh_operations.h>
Go to the source code of this file.
Functions | |
vcl_set< unsigned int > | imesh_detect_exterior_faces (const imesh_mesh &mesh, const vgl_vector_3d< double > &dir, unsigned int img_size, vcl_set< unsigned int > *backfacing) |
Return the set of triangles that are visible from this viewing direction. | |
vcl_set< unsigned int > | imesh_detect_exterior_faces (const imesh_mesh &mesh, unsigned int num_dir_samples, unsigned int img_size) |
Return the set of triangles that are visible in some of the many sample view directions. | |
void | imesh_detect_exterior_faces (const imesh_mesh &mesh, vcl_set< unsigned int > &frontfacing, vcl_set< unsigned int > &backfacing, vcl_set< unsigned int > &bifacing, unsigned int num_dir_samples, unsigned int img_size) |
Return the set of triangles that are visible in some of the many sample view directions. |
Definition in file imesh_detect.cxx.
vcl_set<unsigned int> imesh_detect_exterior_faces | ( | const imesh_mesh & | mesh, |
const vgl_vector_3d< double > & | dir, | ||
unsigned int | img_size, | ||
vcl_set< unsigned int > * | backfacing | ||
) |
Return the set of triangles that are visible from this viewing direction.
Backfacing triangles are not render or counted if backfacing == NULL If backfacing is valid, backfacing exterior triangles are also added to this set
Definition at line 68 of file imesh_detect.cxx.
vcl_set<unsigned int> imesh_detect_exterior_faces | ( | const imesh_mesh & | mesh, |
unsigned int | num_dir_samples = 8 , |
||
unsigned int | img_size = 1000 |
||
) |
Return the set of triangles that are visible in some of the many sample view directions.
Does NOT render backfacing faces or count them as exterior
Definition at line 170 of file imesh_detect.cxx.
void imesh_detect_exterior_faces | ( | const imesh_mesh & | mesh, |
vcl_set< unsigned int > & | frontfacing, | ||
vcl_set< unsigned int > & | backfacing, | ||
vcl_set< unsigned int > & | bifacing, | ||
unsigned int | num_dir_samples, | ||
unsigned int | img_size | ||
) |
Return the set of triangles that are visible in some of the many sample view directions.
Does render backfacing faces and classifies exterior faces as:
Definition at line 221 of file imesh_detect.cxx.