tetra vtiterator vertexpointer constructor
This commit is contained in:
parent
ac79dadd89
commit
ddeab96232
|
@ -46,6 +46,7 @@ class VTIterator
|
||||||
public:
|
public:
|
||||||
/// The tetrahedron type
|
/// The tetrahedron type
|
||||||
typedef MTTYPE TetraType;
|
typedef MTTYPE TetraType;
|
||||||
|
typedef typename TetraType::VertexType VertexType;
|
||||||
private:
|
private:
|
||||||
/// Pointer to a tetrahedron
|
/// Pointer to a tetrahedron
|
||||||
TetraType *_vt;
|
TetraType *_vt;
|
||||||
|
@ -54,11 +55,16 @@ private:
|
||||||
/// Default Constructor
|
/// Default Constructor
|
||||||
public:
|
public:
|
||||||
VTIterator() : _vt(0), _vi(-1){}
|
VTIterator() : _vt(0), _vi(-1){}
|
||||||
/// Constructor which associates the EdgePos elementet with a face and its edge
|
/// Constructor
|
||||||
VTIterator(TetraType * const tp, int const zp)
|
VTIterator(TetraType * const tp, int const zp)
|
||||||
{
|
{
|
||||||
_vt=tp;
|
_vt=tp->V(zp)->VTp();
|
||||||
_vi=zp;
|
_vi=tp->V(zp)->VTi();
|
||||||
|
}
|
||||||
|
VTIterator(VertexType * const vp)
|
||||||
|
{
|
||||||
|
_vt = vp->VTp();
|
||||||
|
_vi = vp->VTi();
|
||||||
}
|
}
|
||||||
|
|
||||||
~VTIterator(){};
|
~VTIterator(){};
|
||||||
|
@ -118,6 +124,7 @@ void VVStarVT( typename TetraType::VertexPointer vp, std::vector<typename TetraT
|
||||||
starVec.resize(new_end - starVec.begin());
|
starVec.resize(new_end - starVec.begin());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/** Templated over the class tetrahedron, it stores a \em position over a tetrahedron in a mesh.
|
/** Templated over the class tetrahedron, it stores a \em position over a tetrahedron in a mesh.
|
||||||
It contain a pointer to the current tetrahedron,
|
It contain a pointer to the current tetrahedron,
|
||||||
the index of one face,edge and a edge's incident vertex.
|
the index of one face,edge and a edge's incident vertex.
|
||||||
|
|
Loading…
Reference in New Issue