Functions
contrib/brl/bbas/imesh/algo/imesh_detect.h File Reference

Detect features on meshes. More...

#include <imesh/imesh_mesh.h>
#include <vcl_set.h>
#include <vgl/vgl_vector_3d.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=1000, vcl_set< unsigned int > *backfacing=NULL)
 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=8, unsigned int img_size=1000)
 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=8, unsigned int img_size=1000)
 Return the set of triangles that are visible in some of the many sample view directions.

Detailed Description

Detect features on meshes.

Author:
Matt Leotta (mleotta@lems.brown.edu)
Date:
May 30, 2008
    Modifications
     <none yet>
   

Definition in file imesh_detect.h.


Function Documentation

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 rendered or counted if backfacing == NULL if backfacing is valid, backfacing exterior triangles are also added to this set

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:

  • frontfacing - seen only from the front
  • backfacing - seen only from the back
  • bifacing - seen from both sides

Definition at line 221 of file imesh_detect.cxx.