Now SMDS_VtkCellIteratorToUNV inherits from SMDS_NodeIterator and
hence next() returns a node
-class SMDS_VtkCellIteratorToUNV: public SMDS_VtkCellIterator
+class SMDS_VtkCellIteratorToUNV: public SMDS_NodeIterator, protected SMDS_VtkCellIterator
{
public:
SMDS_VtkCellIteratorToUNV(SMDS_Mesh* mesh, int vtkCellId, SMDSAbs_EntityType aType);
+ virtual const SMDS_MeshNode* next();
+ virtual bool more();
virtual ~SMDS_VtkCellIteratorToUNV();
};
break;
}
case SMDSEntity_Quad_Triangle:
+ case SMDSEntity_BiQuad_Triangle:
{
static int id[] = { 0, 3, 1, 4, 2, 5 };
ids = id;
+ _nbNodes = 6;
break;
}
case SMDSEntity_Quad_Quadrangle:
_vtkIdList->SetId(i, pts[i]);
}
+bool SMDS_VtkCellIteratorToUNV::more()
+{
+ return SMDS_VtkCellIterator::more();
+}
+
+const SMDS_MeshNode* SMDS_VtkCellIteratorToUNV::next()
+{
+ return static_cast< const SMDS_MeshNode* >( SMDS_VtkCellIterator::next() );
+}
+
SMDS_VtkCellIteratorToUNV::~SMDS_VtkCellIteratorToUNV()
{
}
vtkIdList* _vtkIdList;
};
-class SMDS_VtkCellIteratorToUNV: public SMDS_VtkCellIterator
+class SMDS_VtkCellIteratorToUNV: public SMDS_NodeIterator, protected SMDS_VtkCellIterator
{
public:
SMDS_VtkCellIteratorToUNV(SMDS_Mesh* mesh, int vtkCellId, SMDSAbs_EntityType aType);
+ virtual const SMDS_MeshNode* next();
+ virtual bool more();
virtual ~SMDS_VtkCellIteratorToUNV();
};