Defines | Functions
core/vgl/algo/vgl_intersection.txx File Reference
#include "vgl_intersection.h"
#include <vgl/algo/vgl_homg_operators_3d.h>
#include <vgl/vgl_plane_3d.h>
#include <vgl/vgl_homg_plane_3d.h>
#include <vgl/vgl_box_3d.h>
#include <vgl/vgl_point_3d.h>
#include <vgl/vgl_intersection.h>
#include <vgl/vgl_polygon.h>
#include <vnl/vnl_matrix.h>
#include <vnl/vnl_vector.h>
#include <vnl/algo/vnl_matrix_inverse.h>
#include <vnl/algo/vnl_svd.h>
#include <vcl_cassert.h>

Go to the source code of this file.

Defines

#define vgl_algo_intersection_txx_
#define VGL_ALGO_INTERSECTION_INSTANTIATE(T)

Functions

template<class T >
vgl_point_3d< T > vgl_intersection (vcl_vector< vgl_plane_3d< T > > const &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 > > &poly)
 Return true if the box and polygon intersect in 3-d, regions include boundaries.

Detailed Description

Author:
Gamze Tunali

Definition in file vgl_intersection.txx.


Define Documentation

#define VGL_ALGO_INTERSECTION_INSTANTIATE (   T)
Value:
template vgl_point_3d<T > vgl_intersection(const vcl_vector<vgl_plane_3d<T > >&); \
template bool vgl_intersection(vgl_box_3d<T > const&, vcl_list<vgl_point_3d<T > >&); \
template vgl_infinite_line_3d<T > vgl_intersection(const vcl_list<vgl_plane_3d<T > >& planes); \
template bool vgl_intersection(const vcl_list<vgl_plane_3d<T > >& planes, vcl_vector<T > ws,vgl_infinite_line_3d<T >&,T& residual)

Definition at line 282 of file vgl_intersection.txx.

#define vgl_algo_intersection_txx_

Definition at line 3 of file vgl_intersection.txx.


Function Documentation

template<class T >
vgl_point_3d<T> vgl_intersection ( vcl_vector< vgl_plane_3d< T > > const &  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.