Functions
contrib/brl/bbas/imesh/imesh_detection.cxx File Reference
#include "imesh_detection.h"
#include <vcl_cassert.h>

Go to the source code of this file.

Functions

vcl_vector< vcl_vector
< unsigned int > > 
imesh_detect_boundary_loops (const imesh_half_edge_set &half_edges)
 Return the indices of half edges that are on the mesh boundary.
bool imesh_trace_half_edge_loops (const imesh_half_edge_set &half_edges, const vcl_vector< bool > &flags, vcl_vector< vcl_vector< unsigned int > > &loops)
 Trace half edges that have been selected into loops.
vcl_vector< vcl_vector
< unsigned int > > 
imesh_detect_contour_generator (const imesh_mesh &mesh, const vgl_vector_3d< double > &dir)
 Return the indices of contour half edges as seen from direction.
vcl_vector< bool > imesh_detect_contours (const imesh_mesh &mesh, vgl_vector_3d< double > dir)
 Mark contour half edges as seen from direction.
vcl_vector< vcl_vector
< unsigned int > > 
imesh_detect_contour_generator (const imesh_mesh &mesh, const vgl_point_3d< double > &pt)
 Return the indices of contour half edges as seen from center of projection.
vcl_vector< bool > imesh_detect_contours (const imesh_mesh &mesh, const vgl_point_3d< double > &pt)
 Mark contour half edges as seen from center of projection.
vcl_vector< vcl_set< unsigned
int > > 
imesh_detect_connected_components (const imesh_half_edge_set &he)
 Segment the faces into groups of connected components.
vcl_set< unsigned int > imesh_detect_connected_faces (const imesh_half_edge_set &he, unsigned int face)
 Compute the set of all faces in the same connected component as face.

Detailed Description

Definition in file imesh_detection.cxx.


Function Documentation

vcl_vector<vcl_vector<unsigned int> > imesh_detect_boundary_loops ( const imesh_half_edge_set half_edges)

Return the indices of half edges that are on the mesh boundary.

The results are organized into loops

Definition at line 11 of file imesh_detection.cxx.

vcl_vector<vcl_set<unsigned int> > imesh_detect_connected_components ( const imesh_half_edge_set he)

Segment the faces into groups of connected components.

Definition at line 194 of file imesh_detection.cxx.

vcl_set<unsigned int> imesh_detect_connected_faces ( const imesh_half_edge_set he,
unsigned int  face 
)

Compute the set of all faces in the same connected component as face.

Definition at line 212 of file imesh_detection.cxx.

vcl_vector<vcl_vector<unsigned int> > imesh_detect_contour_generator ( const imesh_mesh mesh,
const vgl_vector_3d< double > &  dir 
)

Return the indices of contour half edges as seen from direction.

Parameters:
dir.The results are organized into loops

Definition at line 86 of file imesh_detection.cxx.

vcl_vector<vcl_vector<unsigned int> > imesh_detect_contour_generator ( const imesh_mesh mesh,
const vgl_point_3d< double > &  pt 
)

Return the indices of contour half edges as seen from center of projection.

Parameters:
pt.The results are organized into loops

Definition at line 141 of file imesh_detection.cxx.

vcl_vector<bool> imesh_detect_contours ( const imesh_mesh mesh,
vgl_vector_3d< double >  dir 
)

Mark contour half edges as seen from direction.

Parameters:
dir.For each contour edge the half edge with the face normal opposing dir is marked

Definition at line 101 of file imesh_detection.cxx.

vcl_vector<bool> imesh_detect_contours ( const imesh_mesh mesh,
const vgl_point_3d< double > &  pt 
)

Mark contour half edges as seen from center of projection.

Parameters:
pt.For each contour edge the half edge with the face normal opposing dir is marked

Definition at line 156 of file imesh_detection.cxx.

bool imesh_trace_half_edge_loops ( const imesh_half_edge_set half_edges,
const vcl_vector< bool > &  flags,
vcl_vector< vcl_vector< unsigned int > > &  loops 
)

Trace half edges that have been selected into loops.

Returns:
true if all half edges form loops The loops are returned in
Parameters:
loopsas vectors of half edge indices

Definition at line 39 of file imesh_detection.cxx.