PLearn 0.1
Namespaces | Functions | Variables
geometry.cc File Reference
#include "geometry.h"
Include dependency graph for geometry.cc:

Go to the source code of this file.

Namespaces

namespace  PLearn
 

< for swap


Functions

Vec PLearn::fixedAnglesFromRotation (const Mat &m)
Mat PLearn::rotationFromFixedAngles (real rx, real ry, real rz)
Mat PLearn::rotationFromAxisAngle (Vec &K, real th)
Mat PLearn::boundingBoxToVertices (const Mat &bbox)
void PLearn::transformPoints (const Mat &rot, const Vec &trans, const Mat &points_in, Mat &points_out)
void PLearn::transformMesh (const Mat &rot, const Vec &trans, SurfMesh &sm)
void PLearn::weightedTransformationFromMatchedPoints (const Mat &mp, const Mat &sp, const Vec &weights, Mat &rot, Vec &trans, real &error)
Vec PLearn::weightedCentroid (const Mat &pts, const Vec &weights)
Mat PLearn::weightedRotationFromMatchedPoints (const Mat &mp, const Mat &sp, const Vec &weights, real &error)
int PLearn::jacobi (Mat &a, Vec &d, Mat &v, int &nrot)
void PLearn::rotate (Mat &a, int i, int j, int k, int l, const real &s, const real &tau)
void PLearn::eigsrt (Vec &d, Mat &v, int n)
real PLearn::maxPointMotion (const Mat &old_points, const Mat &new_points)
real PLearn::calcNormal (graph &mesh, const vertex_descriptor &vtx, Vec &norm)
Vec PLearn::calcNormal (const Vec &v1, const Vec &v2, const Vec &v3, const Vec &n1, const Vec &n2, const Vec &n3, const Vec &target)
void PLearn::findSumsFromPts (const graph &mesh, const set< vertex_descriptor > &points, Vec &sums)
void PLearn::calcPlaneParams (const Vec &sums, Vec &norm, real &d, real &err)
int PLearn::getNormFromEigVecs (const Vec &ev, const Mat &e, Vec &norm)
Vec PLearn::cross (const Vec &v1, const Vec &v2)
void PLearn::randomTransformation (real max_angle, real max_dist, Mat &rot, Vec &trans)
Mat PLearn::randomRotation (real max_angle)
void PLearn::getNearestVertex (const Vec &test_pt, const SurfMesh &mesh2, const GenericNN &btl, int &closest_vertex, Vec &closest_pt, real &closest_dist)
bool PLearn::isOverlapping (Vec &test_pt, Vec &test_normal, const SurfMesh &mesh2, const TVec< set< int > > &face_cache, GenericNN &btl, const real init_dist_t, const real normal_t, int &closest_vertex, Vec &closest_pt, real &closest_dist)
bool PLearn::pointIsInterior (const TriType tri_type, const int m2face, const SurfMesh &mesh2)
bool PLearn::closestFacePoint (const Vec &m1pt, const set< int > &m2faces, const SurfMesh &mesh2, const real dist_t, Vec &closest_pt, real &closest_dist, int &closest_face, TriType &closest_tri_type)
bool PLearn::closestPointOnTriangle (const Vec &p, const Vec &v1, const Vec &v2, const Vec &v3, const real dist_t, Vec &closest, TriType &tri_type, real &dist)
int PLearn::region1ClosestPoint (const Vec &planep, const Vec &va, const Vec &vb, const Vec &ea, Vec &closest)
int PLearn::region2ClosestPoint (const Vec &planep, const Vec &va, const Vec &vb, const Vec &vc, const Vec &ea, const Vec &eb, Vec closest)

Variables

static TriType PLearn::r1_table [3][3]
static TriType PLearn::r2_table [3][5]

Detailed Description

Definition in file geometry.cc.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines