Macros | Functions
vgl_intersection.hxx 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 <cassert>

Go to the source code of this file.

Macros

#define VGL_ALGO_INTERSECTION_INSTANTIATE(T)
 

Functions

template<class T >
vgl_point_3d< T > vgl_intersection (std::vector< vgl_plane_3d< T > > const &p)
 Return the intersection point of vector of planes. More...
 
template<class T >
vgl_infinite_line_3d< T > vgl_intersection (const std::list< vgl_plane_3d< T > > &planes)
 Return the intersection line of a set of planes, use list to distinguish from point return. More...
 
template<class T >
bool vgl_intersection (const std::list< vgl_plane_3d< T > > &planes, std::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. More...
 
template<class T >
bool vgl_intersection (vgl_box_3d< T > const &b, std::list< vgl_point_3d< T > > &poly)
 Return true if the box and polygon intersect in 3-d, regions include boundaries. More...
 

Detailed Description

Author
Gamze Tunali

Definition in file vgl_intersection.hxx.

Macro Definition Documentation

◆ VGL_ALGO_INTERSECTION_INSTANTIATE

#define VGL_ALGO_INTERSECTION_INSTANTIATE (   T)
Value:
template vgl_point_3d<T > vgl_intersection(const std::vector<vgl_plane_3d<T > >&); \
template bool vgl_intersection(vgl_box_3d<T > const&, std::list<vgl_point_3d<T > >&); \
template vgl_infinite_line_3d<T > vgl_intersection(const std::list<vgl_plane_3d<T > >& planes); \
template bool vgl_intersection(const std::list<vgl_plane_3d<T > >& planes, std::vector<T > ws,vgl_infinite_line_3d<T >&,T& residual)
vgl_point_3d< T > vgl_intersection(const std::vector< vgl_plane_3d< T > > &p)
Return the intersection point of vector of planes.
Represents a Euclidean 3D plane.
Definition: vgl_fwd.h:23
Represents a 3-d line with position defined in the orthogonal plane passing through the origin.
Definition: vgl_fwd.h:20
Represents a cartesian 3D box.
Definition: vgl_box_3d.h:65

Definition at line 286 of file vgl_intersection.hxx.

Function Documentation

◆ vgl_intersection() [1/4]

template<class T >
vgl_point_3d<T> vgl_intersection ( std::vector< vgl_plane_3d< T > > const &  p)

Return the intersection point of vector of planes.

Definition at line 29 of file vgl_intersection.hxx.

◆ vgl_intersection() [2/4]

template<class T >
vgl_infinite_line_3d<T> vgl_intersection ( const std::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 42 of file vgl_intersection.hxx.

◆ vgl_intersection() [3/4]

template<class T >
bool vgl_intersection ( const std::list< vgl_plane_3d< T > > &  planes,
std::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 118 of file vgl_intersection.hxx.

◆ vgl_intersection() [4/4]

template<class T >
bool vgl_intersection ( vgl_box_3d< T > const &  b,
std::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 212 of file vgl_intersection.hxx.