Skip to content

Commit 4d11f48

Browse files
committed
fox for vtk 9.0?
1 parent e5670cb commit 4d11f48

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Common/vtkSurfaceBase.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,8 +453,14 @@ vtkIdType &NumberOfVertices, vtkIdType* &Vertices)
453453
inline void vtkSurfaceBase::GetFaceVertices(const vtkIdType& face,
454454
vtkIdType &NumberOfVertices, vtkIdType* &Vertices)
455455
{
456+
#if ( (VTK_MAJOR_VERSION == 9) and (VTK_MINOR_VERSION < 1))
457+
auto connectivity = this->Polys->GetConnectivityArray64();
458+
auto offsets = this->Polys->GetOffsetsArray64();
459+
#else
456460
auto connectivity = this->Polys->GetConnectivityAOSArray64();
457461
auto offsets = this->Polys->GetOffsetsAOSArray64();
462+
#endif
463+
458464
auto offset1 = offsets->GetValue( face );
459465
auto offset2 = offsets->GetValue( face + 1 );
460466
NumberOfVertices = offset2 - offset1;

0 commit comments

Comments
 (0)