33 #ifndef __H__LIB_GRID__EXTRUDER_UTIL_IMPL__
34 #define __H__LIB_GRID__EXTRUDER_UTIL_IMPL__
44 template <
class TIterator>
46 TIterator iterBegin, TIterator iterEnd,
49 std::vector<Vertex*> vElems;
50 vElems.assign(iterBegin, iterEnd);
52 for(
int i = 0; i < numSteps; ++i)
53 Extrude(grid, &vElems, NULL, NULL, stepDir);
59 template <
class TIterator>
61 TIterator iterBegin, TIterator iterEnd,
64 std::vector<Edge*> vElems;
65 vElems.assign(iterBegin, iterEnd);
67 for(
int i = 0; i < numSteps; ++i)
68 Extrude(grid, NULL, &vElems, NULL, stepDir);
74 template <
class TIterator>
76 TIterator iterBegin, TIterator iterEnd,
79 std::vector<Face*> vElems;
80 vElems.assign(iterBegin, iterEnd);
82 for(
int i = 0; i < numSteps; ++i)
83 Extrude(grid, NULL, NULL, &vElems, stepDir);
Manages the elements of a grid and their interconnection.
Definition: grid.h:132
void Extrude(Grid &grid, std::vector< Vertex * > *pvVerticesInOut, std::vector< Edge * > *pvEdgesInOut, std::vector< Face * > *pvFacesInOut, const vector_t &direction, uint extrusionOptions, Attachment< vector_t > &aPos, std::vector< Volume * > *pvVolsOut)
extrudes geometry and creates new edges, faces and volumes.
Definition: extrude.cpp:64
bool RepeatedEdgeExtrusion(Grid &grid, TIterator iterBegin, TIterator iterEnd, int numSteps, const ug::vector3 &stepDir)
Definition: extruder_util_impl.hpp:60
bool RepeatedFaceExtrusion(Grid &grid, TIterator iterBegin, TIterator iterEnd, int numSteps, const ug::vector3 &stepDir)
Definition: extruder_util_impl.hpp:75
bool RepeatedVertexExtrusion(Grid &grid, TIterator iterBegin, TIterator iterEnd, int numSteps, const ug::vector3 &stepDir)
Definition: extruder_util_impl.hpp:45