Defines | Functions
core/vgl/algo/vgl_intersection.h File Reference

Set of intersection functions. More...

#include <vgl/vgl_fwd.h>
#include <vcl_vector.h>
#include <vcl_list.h>

Go to the source code of this file.

Defines

#define VGL_ALGO_INTERSECTION_INSTANTIATE(T)   extern "please include vgl/algo/vgl_intersection.txx first"

Functions

template<class T >
vgl_point_3d< T > vgl_intersection (const vcl_vector< vgl_plane_3d< T > > &p)
 Return the intersection point of vector of planes.
template<class T >
vgl_infinite_line_3d< T > vgl_intersection (const vcl_list< vgl_plane_3d< T > > &planes)
 Return the intersection line of a set of planes, use list to distinguish from point return.
template<class T >
bool vgl_intersection (const vcl_list< vgl_plane_3d< T > > &planes, vcl_vector< T > ws, vgl_infinite_line_3d< T > &line, T &residual)
 Return the intersection line of a set of weighted planes, use list to distinguish from point return.
template<class T >
bool vgl_intersection (vgl_box_3d< T > const &b, vcl_list< vgl_point_3d< T > > &p)
 Return true if the box and polygon intersect in 3-d, regions include boundaries.

Detailed Description

Set of intersection functions.

Author:
Jan 25, 2007 Gamze Tunali

This file aims to gather all the intersection methods on vgl classes at one place. Some of the functions moved from their own class files to here or interface methods created for non-homogeneous versions of the ones that are already defined in vgl/algo/vgl_homg_operators_3d

    Modifications
     23 Jul 2009 - Gamze Tunali - added a 3D box-polygon intersection method
  
     01 Mar 2007 - Gamze Tunali - split up into vgl/algo and vgl parts
   

Definition in file vgl_intersection.h.


Define Documentation

#define VGL_ALGO_INTERSECTION_INSTANTIATE (   T)    extern "please include vgl/algo/vgl_intersection.txx first"

Definition at line 53 of file vgl_intersection.h.


Function Documentation

template<class T >
vgl_point_3d< T > vgl_intersection ( const vcl_vector< vgl_plane_3d< T > > &  p)

Return the intersection point of vector of planes.

Definition at line 26 of file vgl_intersection.txx.

template<class T >
vgl_infinite_line_3d< T > vgl_intersection ( const vcl_list< vgl_plane_3d< T > > &  planes)

Return the intersection line of a set of planes, use list to distinguish from point return.

Definition at line 39 of file vgl_intersection.txx.

template<class T >
bool vgl_intersection ( const vcl_list< vgl_plane_3d< T > > &  planes,
vcl_vector< T >  ws,
vgl_infinite_line_3d< T > &  line,
T &  residual 
)

Return the intersection line of a set of weighted planes, use list to distinguish from point return.

Definition at line 115 of file vgl_intersection.txx.

template<class T >
bool vgl_intersection ( vgl_box_3d< T > const &  b,
vcl_list< vgl_point_3d< T > > &  p 
)

Return true if the box and polygon intersect in 3-d, regions include boundaries.

Polygon is represented as an ordered vector of 3-d points

Definition at line 208 of file vgl_intersection.txx.