HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GU_UVUtils Namespace Reference

Typedefs

template<typename T >
using GetFunctor = std::function< T(int)>
 
template<typename T >
using SetFunctor = std::function< void(int, T)>
 
template<typename T >
using VectorT = UT_VectorT< T >
 
using VectorR = VectorT< fpreal >
 
template<typename T >
using MatrixT = UT_MatrixT< T >
 
using MatrixR = MatrixT< fpreal >
 
template<typename T >
using SparseMatrixT = UT_SparseMatrixCSRT< T >
 
using SparseMatrixR = SparseMatrixT< fpreal >
 
using TripletR = SparseMatrixR::Triplet
 
using TripletRArray = UT_Array< TripletR >
 
using fpcomplex = std::complex< fpreal >
 
template<typename T >
using EVectorT = Eigen::Matrix< T, Eigen::Dynamic, 1 >
 
using EVectorR = EVectorT< fpreal >
 
using EVectorC = EVectorT< fpcomplex >
 
template<typename T >
using EMatrixT = Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic >
 
using EMatrixR = EMatrixT< fpreal >
 
using EMatrixC = EMatrixT< fpcomplex >
 
template<typename T >
using ESparseMatrixT = Eigen::SparseMatrix< T >
 
using ESparseMatrixR = ESparseMatrixT< fpreal >
 
using ESparseMatrixC = ESparseMatrixT< fpcomplex >
 
template<typename T >
using ETripletT = Eigen::Triplet< T >
 
using ETripletR = ETripletT< fpreal >
 
using ETripletC = ETripletT< fpcomplex >
 
using ETripletRArray = UT_Array< ETripletR >
 
using ETripletCArray = UT_Array< ETripletC >
 

Functions

template<typename T >
GU_API UT_Vector2T< T > trianglesSymmetryAxis (int num_tris, const GetFunctor< UT_Vector2T< T > > &get_pt_pos, UT_Vector2T< T > *centroid=nullptr, T max_eigen_ratio=T(0.99))
 
template<typename T >
GU_API UT_Vector2T< T > segmentsSymmetryAxis (int num_segs, const GetFunctor< UT_Vector2T< T > > &get_pt_pos, UT_Vector2T< T > *centroid=nullptr, T max_eigen_ratio=T(0.99))
 
template<typename T >
GU_API UT_Vector2T< T > pointsMinAreaBoundingBoxAxis (int num_points, const GetFunctor< UT_Vector2T< T > > &get_pt_pos)
 
template<typename T >
GU_API UT_Vector2T< T > vectorsOrthoAxis (int num_vectors, const GetFunctor< UT_Vector2T< T > > &get_vector)
 
template<typename T >
GU_API void covarianceAxes2 (const EMatrixT< T > &C, UT_Vector2T< T > &x_axis, UT_Vector2T< T > &y_axis, UT_Vector2T< T > &eigenvals)
 

Typedef Documentation

Definition at line 60 of file GU_UVUtils.h.

Definition at line 59 of file GU_UVUtils.h.

template<typename T >
using GU_UVUtils::EMatrixT = typedef Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic>

Definition at line 58 of file GU_UVUtils.h.

Definition at line 65 of file GU_UVUtils.h.

Definition at line 64 of file GU_UVUtils.h.

template<typename T >
using GU_UVUtils::ESparseMatrixT = typedef Eigen::SparseMatrix<T>

Definition at line 63 of file GU_UVUtils.h.

Definition at line 71 of file GU_UVUtils.h.

Definition at line 74 of file GU_UVUtils.h.

Definition at line 70 of file GU_UVUtils.h.

Definition at line 73 of file GU_UVUtils.h.

template<typename T >
using GU_UVUtils::ETripletT = typedef Eigen::Triplet<T>

Definition at line 68 of file GU_UVUtils.h.

Definition at line 55 of file GU_UVUtils.h.

Definition at line 54 of file GU_UVUtils.h.

template<typename T >
using GU_UVUtils::EVectorT = typedef Eigen::Matrix<T, Eigen::Dynamic, 1>

Definition at line 53 of file GU_UVUtils.h.

using GU_UVUtils::fpcomplex = typedef std::complex<fpreal>

Definition at line 50 of file GU_UVUtils.h.

template<typename T >
using GU_UVUtils::GetFunctor = typedef std::function<T(int)>

Definition at line 28 of file GU_UVUtils.h.

Definition at line 40 of file GU_UVUtils.h.

template<typename T >
using GU_UVUtils::MatrixT = typedef UT_MatrixT<T>

Definition at line 39 of file GU_UVUtils.h.

template<typename T >
using GU_UVUtils::SetFunctor = typedef std::function<void(int, T)>

Definition at line 31 of file GU_UVUtils.h.

Definition at line 44 of file GU_UVUtils.h.

template<typename T >
using GU_UVUtils::SparseMatrixT = typedef UT_SparseMatrixCSRT<T>

Definition at line 43 of file GU_UVUtils.h.

Definition at line 46 of file GU_UVUtils.h.

Definition at line 47 of file GU_UVUtils.h.

Definition at line 36 of file GU_UVUtils.h.

template<typename T >
using GU_UVUtils::VectorT = typedef UT_VectorT<T>

Definition at line 35 of file GU_UVUtils.h.

Function Documentation

template<typename T >
GU_API void GU_UVUtils::covarianceAxes2 ( const EMatrixT< T > &  C,
UT_Vector2T< T > &  x_axis,
UT_Vector2T< T > &  y_axis,
UT_Vector2T< T > &  eigenvals 
)
template<typename T >
GU_API UT_Vector2T<T> GU_UVUtils::pointsMinAreaBoundingBoxAxis ( int  num_points,
const GetFunctor< UT_Vector2T< T > > &  get_pt_pos 
)
template<typename T >
GU_API UT_Vector2T<T> GU_UVUtils::segmentsSymmetryAxis ( int  num_segs,
const GetFunctor< UT_Vector2T< T > > &  get_pt_pos,
UT_Vector2T< T > *  centroid = nullptr,
max_eigen_ratio = T(0.99) 
)
template<typename T >
GU_API UT_Vector2T<T> GU_UVUtils::trianglesSymmetryAxis ( int  num_tris,
const GetFunctor< UT_Vector2T< T > > &  get_pt_pos,
UT_Vector2T< T > *  centroid = nullptr,
max_eigen_ratio = T(0.99) 
)
template<typename T >
GU_API UT_Vector2T<T> GU_UVUtils::vectorsOrthoAxis ( int  num_vectors,
const GetFunctor< UT_Vector2T< T > > &  get_vector 
)