Ignore:
Timestamp:
Feb 18, 2013 2:32:14 PM (11 years ago)
Author:
ldelgass
Message:

sync with trunk

Location:
branches/nanovis2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/nanovis2

  • branches/nanovis2/packages/vizservers/vtkvis/RpContour3D.cpp

    r2612 r3305  
    11/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
    22/*
    3  * Copyright (C) 2011, Purdue Research Foundation
     3 * Copyright (C) 2004-2012  HUBzero Foundation, LLC
    44 *
    55 * Author: Leif Delgass <ldelgass@purdue.edu>
     
    88#include <cassert>
    99
     10#include <vtkVersion.h>
     11#if (VTK_MAJOR_VERSION >= 6)
     12#define USE_VTK6
     13#endif
    1014#include <vtkDataSet.h>
    1115#include <vtkPointData.h>
     
    117121            cellToPtData =
    118122                vtkSmartPointer<vtkCellDataToPointData>::New();
     123#ifdef USE_VTK6
     124            cellToPtData->SetInputData(ds);
     125#else
    119126            cellToPtData->SetInput(ds);
     127#endif
    120128            //cellToPtData->PassCellDataOn();
    121129            cellToPtData->Update();
     
    135143            // Generate a 3D unstructured grid
    136144            vtkSmartPointer<vtkDelaunay3D> mesher = vtkSmartPointer<vtkDelaunay3D>::New();
     145#ifdef USE_VTK6
     146            mesher->SetInputData(pd);
     147#else
    137148            mesher->SetInput(pd);
     149#endif
    138150            _contourFilter->SetInputConnection(mesher->GetOutputPort());
    139151        } else {
     
    144156    } else {
    145157         // DataSet is NOT a vtkPolyData
     158#ifdef USE_VTK6
     159         _contourFilter->SetInputData(ds);
     160#else
    146161         _contourFilter->SetInput(ds);
     162#endif
    147163    }
    148164
Note: See TracChangeset for help on using the changeset viewer.