Tricky Change to the refine interface. Now the edge and midpoint predicate are passed as reference so if you need you can make predicate with state. This is useful when the edge and midpoint predicate share a lot of common information and you want exploit the computation done in the edge predicate (e.g. sometimes when you decide if an edge has to be split you already know where the vertex should be placed).
This commit is contained in:
parent
fd08c3eaf8
commit
993a9a2c5b
|
@ -301,7 +301,7 @@ class RefinedFaceData
|
|||
};
|
||||
|
||||
template<class MESH_TYPE,class MIDPOINT, class EDGEPRED>
|
||||
bool RefineE(MESH_TYPE &m, MIDPOINT mid, EDGEPRED ep,bool RefineSelected=false, CallBackPos *cb = 0)
|
||||
bool RefineE(MESH_TYPE &m, MIDPOINT &mid, EDGEPRED &ep,bool RefineSelected=false, CallBackPos *cb = 0)
|
||||
{
|
||||
// common typenames
|
||||
typedef typename MESH_TYPE::VertexIterator VertexIterator;
|
||||
|
|
Loading…
Reference in New Issue