CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[General] Equivalent C++ code for applied filters in Paraview

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 12, 2018, 21:14
Default Equivalent C++ code for applied filters in Paraview
  #1
New Member
 
Alibaba
Join Date: Jan 2018
Posts: 1
Rep Power: 0
Sandbad is on a distinguished road
Dear All,

I have an unstructured mesh and by using ParaView I have applied three
filters in sequence (Python Calculator, Threshold, Extract Surface) on that
mesh . With Python Calculator filter I compute the "area" of the CellData.
I want to write the equivalent C++ code using VTK library. I have read the
data like this:

vtkUnstructuredGridReader * reader = vtkUnstructuredGridReader::New();
reader->SetFileName(filename.c_str());

reader->ReadAllScalarsOn();
reader->ReadAllVectorsOn();
reader->Update();

would you please help me to apply those filters. I would appreciate your help.

Best,
Sandbad
Sandbad is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[OpenFOAM] ParaView Plotting: Why are some Filters in the Alphabetical list greyed out? arieljeds ParaView 3 August 23, 2017 14:30
[OpenFOAM] Paraview client/server does not work with ParaView 5.0.1 snak ParaView 0 October 17, 2016 11:22
State of the art in CFD technology Juan Carlos GARCIA SALAS Main CFD Forum 39 November 1, 1999 15:34
public CFD Code development Heinz Wilkening Main CFD Forum 38 March 5, 1999 12:44
What kind of Cmmercial CFD code you feel well? Lans Main CFD Forum 13 October 27, 1998 11:20


All times are GMT -4. The time now is 20:00.