ug4
triangle_fill.cpp File Reference
#include <queue>
#include <algorithm>
#include "triangle_fill.h"
#include "common/math/ugmath.h"
#include "lib_grid/algorithms/geom_obj_util/geom_obj_util.h"
#include "lib_grid/algorithms/polychain_util.h"

Classes

struct  ug::ChainInfo
 

Namespaces

 ug
 the ug namespace
 

Functions

void ug::CalculatePolychainEdgeNormals (vector2 *edgeNormalsOut, vector2 *polyChain, size_t polyChainSize, bool bOuterNormals)
 
bool ug::TriangleFill (Grid &grid, EdgeIterator edgesBegin, EdgeIterator edgesEnd, bool bTriangulateInside=true)
 Fills a region bounded by the given poly-chain with triangles. More...
 
bool ug::TriangleFill (std::vector< int > &vTriIndsOut, vector2 *polyChain, size_t polyChainSize, bool bTriangulateInside=true)
 Fills a 2d-region, bounded by the given poly-chain, with triangles. More...
 
void ug::UpdateChainInfo (ChainInfo &ci, vector2 *polyChain, vector2 *edgeNormals)