33 #ifndef __H__UG_crease_util_impl
34 #define __H__UG_crease_util_impl
41 template <
class TVrtIter,
class TAAPos>
43 number thresholdAngle,
bool selectDarts, TAAPos aaPos,
48 typedef typename TAAPos::ValueType vector_t;
58 for(TVrtIter viter = vrtsBegin; viter != vrtsEnd; ++viter){
72 if(
VecAngle(dir0, dir1) >= thresholdRad)
Iterator that allows to traverse associated elements of a given element.
Definition: associated_elements_iterator.h:51
bool valid() const
Definition: associated_elements_iterator.h:94
void reinit(Grid &grid, TElem *elem)
Definition: associated_elements_iterator.h:73
Base-class for edges.
Definition: grid_base_objects.h:397
Manages the elements of a grid and their interconnection.
Definition: grid.h:132
Grid * grid() const
Definition: selector_interface.h:218
void select(GridObject *elem, byte status)
selects an element
Definition: selector_interface_impl.hpp:56
specialization of ISelector for a grid of class Grid.
Definition: selector_grid.h:96
Base-class for all vertex-types.
Definition: grid_base_objects.h:231
Vertex * GetConnectedVertex(Edge *e, Vertex *v)
returns the vertex that is connected to v via e.
Definition: vertex_util.cpp:78
double number
Definition: types.h:124
TNumber deg_to_rad(TNumber deg)
Definition: math_util_impl.hpp:49
void VecSubtract(vector_t &vOut, const vector_t &v1, const vector_t &v2)
subtracts v2 from v1 and stores the result in a vOut
Definition: math_vector_functions_common_impl.hpp:226
vector_t::value_type VecAngle(const vector_t &v1, const vector_t &v2)
returns the angle between two vectors in radiants
Definition: math_vector_functions_common_impl.hpp:401
void SelectKinkVertices(Grid &grid, TVrtIter vrtsBegin, TVrtIter vrtsEnd, number thresholdAngle, bool selectDarts, TAAPos aaPos, Grid::edge_traits::callback cbConsiderEdge=ConsiderAll())
boost::function< bool(base_object *)> callback
callback type for the elements base type.
Definition: grid.h:150