TM2IN  0.5.1
Classes | Functions
TM2IN::algorithm Namespace Reference

Classes

class  DividedPolygonizer
 
class  PCAPolygonizer
 
class  Polygonizer
 Converter TM2IN::RoomBoundary::TriangulatedSurfaceMesh to TM2IN::RoomBoundary::PolygonMesh. More...
 
class  TrianglePolygonizer
 

Functions

bool has_lower_angle_than (Vertex *origin, Vertex *v1, Vertex *v2, double angle)
 Compares angle between Vector(origin, v1) and Vector(origin, v2) and the specific angle. More...
 
bool isCollinear (Vertex *start_p, Vertex *check_p, Vertex *end_p)
 Determines whether the line string (start_p, check_p, end_p) is collinear. More...
 
bool greater (Vertex *a, Vertex *b)
 Compares two Vertices. More...
 
bool compareArea (IndoorComponent *i, IndoorComponent *j)
 Compares two Indoor Component by calculating area. More...
 
CGAL::Bbox_3 getMBB (std::vector< Wall::Surface * > &surfacesList)
 Gets CGAL::Bbox_3 for Surface list. More...
 
bool mergeSurfaces (TM2IN::RoomBoundary::TriangulatedSurfaceMesh *tsm, double thres1, double thres2)
 Merges TM2IN::RoomBoundary::TriangulatedSurfaceMesh to larger one. More...
 
int cleanMergedSurfaces (TM2IN::RoomBoundary::TriangulatedSurfaceMesh *tsm)
 Cleans TM2IN::RoomBoundary::TriangulatedSurfaceMesh after merging. More...
 
bool mergeSurfaces (std::vector< Wall::TriangulatedSurface * > &surfaceList, double thres1, double thres2, vector< Wall::TriangulatedSurface * > &newSurfaceList)
 
bool mergeTriangles (vector< Wall::Triangle * > &triangleList, double thres1, double thres2, vector< Wall::TriangulatedSurface * > &newSurfaceList)
 
bool mergeSurfaces (vector< Wall::TriangulatedSurface * > &surfaceList, double thres1, double thres2, vector< Wall::TriangulatedSurface * > &newSurfaceList)
 Merges the list of Surface. Result will be stored in 4th parameter. More...
 
bool mergeTriangles (vector< Wall::Triangle * > &triangleList, double thres1, double thres2, vector< Wall::TriangulatedSurface * > &newSurfaceList)
 Merges the list of Triangle. Result will be stored in 4th parameter. More...
 
int triangulate (TM2IN::Wall::Surface *pSurface, std::vector< TM2IN::Wall::Triangle * > &result)
 Triangulate one TM2IN::Surface to multiple TM2IN::Triangle objects. More...
 

Function Documentation

bool TM2IN::algorithm::mergeSurfaces ( std::vector< Wall::TriangulatedSurface * > &  surfaceList,
double  thres1,
double  thres2,
vector< Wall::TriangulatedSurface * > &  newSurfaceList 
)
bool TM2IN::algorithm::mergeTriangles ( vector< Wall::Triangle * > &  triangleList,
double  thres1,
double  thres2,
vector< Wall::TriangulatedSurface * > &  newSurfaceList 
)