跳转至

VTK Examples

VTK Examples

discourse

CMake

Text Only
1
2
cmake ..
cmake --build . --parallel 4 --config Release

VTK LIB

Text Only
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
--  VTK_LIBRARIES  = 
VTK::DICOM;
VTK::zlib;VTK::MomentInvariants;VTK::eigen;VTK::kissfft;VTK::WrappingTools;
VTK::ViewsContext2D;VTK::loguru;VTK::TestingRendering;VTK::TestingCore;
VTK::vtksys;VTK::ViewsInfovis;VTK::CommonColor;VTK::RenderingVolumeOpenGL2;
VTK::glew;VTK::opengl;VTK::RenderingLabel;VTK::octree;VTK::RenderingLOD;
VTK::RenderingLICOpenGL2;VTK::RenderingImage;VTK::RenderingContextOpenGL2;
VTK::RenderingCellGrid;VTK::IOVeraOut;VTK::hdf5;VTK::IOTecplotTable;
VTK::utf8;
VTK::IOSegY;VTK::IOParallelXML;VTK::IOParallel;VTK::jsoncpp;VTK::IOPLY;
VTK::IOOggTheora;VTK::theora;VTK::ogg;VTK::IONetCDF;VTK::netcdf;
VTK::libproj;
VTK::IOMotionFX;VTK::pegtl;VTK::IOMINC;VTK::IOLSDyna;VTK::IOInfovis;
VTK::libxml2;VTK::IOImport;VTK::IOIOSS;VTK::fmt;VTK::ioss;VTK::cgns;
VTK::exodusII;VTK::IOFLUENTCFF;VTK::IOVideo;VTK::IOMovie;
VTK::IOExportPDF;VTK::libharu;VTK::IOExportGL2PS;VTK::RenderingGL2PSOpenGL2;
VTK::gl2ps;VTK::png;VTK::IOExport;VTK::RenderingVtkJS;VTK::nlohmannjson;
VTK::RenderingSceneGraph;VTK::IOExodus;VTK::IOEnSight;VTK::IOCityGML;
VTK::pugixml;
VTK::IOChemistry;VTK::IOCesium3DTiles;VTK::IOGeometry;VTK::IOCellGrid;
VTK::IOCONVERGECFD;VTK::IOHDF;VTK::IOCGNSReader;VTK::IOAsynchronous;
VTK::IOAMR;VTK::InteractionImage;VTK::ImagingStencil;VTK::ImagingStatistics;
VTK::ImagingMorphological;VTK::ImagingMath;VTK::ImagingFourier;
VTK::IOSQL;VTK::sqlite;VTK::GeovisCore;VTK::InfovisLayout;VTK::ViewsCore;
VTK::InteractionWidgets;VTK::RenderingVolume;VTK::RenderingAnnotation;
VTK::ImagingHybrid;VTK::ImagingColor;VTK::InteractionStyle;
VTK::FiltersTopology;
VTK::FiltersTensor;VTK::FiltersSelection;VTK::FiltersSMP;
VTK::FiltersReduction;
VTK::FiltersProgrammable;VTK::FiltersPoints;VTK::FiltersParallelImaging;
VTK::FiltersImaging;VTK::ImagingGeneral;VTK::FiltersGeometryPreview;
VTK::FiltersGeneric;VTK::FiltersFlowPaths;VTK::FiltersCellGrid;
VTK::FiltersAMR;
VTK::FiltersParallel;VTK::FiltersTexture;VTK::FiltersModeling;
VTK::DomainsChemistryOpenGL2;VTK::RenderingOpenGL2;
VTK::RenderingHyperTreeGrid;
VTK::RenderingUI;VTK::FiltersHybrid;VTK::DomainsChemistry;VTK::ChartsCore;
VTK::InfovisCore;VTK::FiltersExtraction;VTK::ParallelDIY;VTK::diy2;
VTK::IOXML;VTK::IOXMLParser;VTK::expat;VTK::ParallelCore;VTK::IOLegacy;
VTK::IOCore;VTK::doubleconversion;VTK::lz4;VTK::lzma;VTK::fast_float;
VTK::FiltersStatistics;VTK::FiltersHyperTree;VTK::ImagingSources;
VTK::IOImage;VTK::DICOMParser;VTK::jpeg;VTK::metaio;VTK::tiff;
VTK::RenderingContext2D;VTK::RenderingFreeType;VTK::freetype;VTK::kwiml;
VTK::RenderingCore;VTK::FiltersSources;VTK::ImagingCore;VTK::FiltersGeneral;
VTK::FiltersVerdict;VTK::verdict;VTK::FiltersGeometry;
VTK::CommonComputationalGeometry;
VTK::FiltersCore;VTK::CommonExecutionModel;
VTK::CommonDataModel;VTK::CommonSystem;
VTK::CommonMisc;VTK::exprtk;VTK::CommonTransforms;
VTK::CommonMath;VTK::CommonCore

VTK_LIBRARIES LIST

Text Only
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
DICOM
zlib
MomentInvariants
eigen
kissfft
WrappingTools
ViewsContext2D
loguru
TestingRendering
TestingCore
vtksys
ViewsInfovis
CommonColor
RenderingVolumeOpenGL2
glew
opengl
RenderingLabel
octree
RenderingLOD
RenderingLICOpenGL2
RenderingImage
RenderingContextOpenGL2
RenderingCellGrid
IOVeraOut
hdf5
IOTecplotTable
utf8
IOSegY
IOParallelXML
IOParallel
jsoncpp
IOPLY
IOOggTheora
theora
ogg
IONetCDF
netcdf
libproj
IOMotionFX
pegtl
IOMINC
IOLSDyna
IOInfovis
libxml2
IOImport
IOIOSS
fmt
ioss
cgns
exodusII
IOFLUENTCFF
IOVideo
IOMovie
IOExportPDF
libharu
IOExportGL2PS
RenderingGL2PSOpenGL2
gl2ps
png
IOExport
RenderingVtkJS
nlohmannjson
RenderingSceneGraph
IOExodus
IOEnSight
IOCityGML
pugixml
IOChemistry
IOCesium3DTiles
IOGeometry
IOCellGrid
IOCONVERGECFD
IOHDF
IOCGNSReader
IOAsynchronous
IOAMR
InteractionImage
ImagingStencil
ImagingStatistics
ImagingMorphological
ImagingMath
ImagingFourier
IOSQL
sqlite
GeovisCore
InfovisLayout
ViewsCore
InteractionWidgets
RenderingVolume
RenderingAnnotation
ImagingHybrid
ImagingColor
InteractionStyle
FiltersTopology
FiltersTensor
FiltersSelection
FiltersSMP
FiltersReduction
FiltersProgrammable
FiltersPoints
FiltersParallelImaging
FiltersImaging
ImagingGeneral
FiltersGeometryPreview
FiltersGeneric
FiltersFlowPaths
FiltersCellGrid
FiltersAMR
FiltersParallel
FiltersTexture
FiltersModeling
DomainsChemistryOpenGL2
RenderingOpenGL2
RenderingHyperTreeGrid
RenderingUI
FiltersHybrid
DomainsChemistry
ChartsCore
InfovisCore
FiltersExtraction
ParallelDIY
diy2
IOXML
IOXMLParser
expat
ParallelCore
IOLegacy
IOCore
doubleconversion
lz4
lzma
fast_float
FiltersStatistics
FiltersHyperTree
ImagingSources
IOImage
DICOMParser
jpeg
metaio
tiff
RenderingContext2D
RenderingFreeType
freetype
kwiml
RenderingCore
FiltersSources
ImagingCore
FiltersGeneral
FiltersVerdict
verdict
FiltersGeometry
CommonComputationalGeometry
FiltersCore
CommonExecutionModel
CommonDataModel
CommonSystem
CommonMisc
exprtk
CommonTransforms
CommonMath
CommonCore

ReadAllPolyDataTypesDemo

Text Only
1
2
3
4
5
6
7
./ReadAllPolyDataTypesDemo.exe
teapot.g
cowHead.vtp
horse.ply
trumpet.obj
42400-IDGH.stl
v.vtk
or
Text Only
1
2
3
4
5
6
7
./Release/ReadAllPolyDataTypesDemo.exe `
../../../Data/teapot.g `
../../../Data/cowHead.vtp `
../../../Data/horse.ply `
../../../Data/trumpet.obj `
../../../Data/42400-IDGH.stl `
../../../Data/v.vtk

ReadAllUnstructuredGridTypes

list all vtk files

python code

Python
1
2
3
4
5
6
7
8
import os

directory = 'vtkfiles'

file_names = os.listdir(directory)

for file_name in file_names:
    print(file_name)

results:

Text Only
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
PS D:\work\python_work\ModernPython\codes\getfoderfiles\01a> py.exe .\testprj.py
250.vtk
AngularSector.vtk
a_grid.vtk
blow.vtk
blowAttr.vtk
blowGeom.vtk
bore.vtk
brain.vtk
brainImageSmooth.vtk
carotid.vtk
damavand-volcano.vtk
DEC.vtk
faults.vtk
fieldfile.vtk
financial.vtk
fran_cut.vtk
GE.vtk
GM.vtk
hello.vtk
hexa.vtk
honolulu.vtk
IBM.vtk
ironProt.vtk
k.vtk
kitchen.vtk
matrix.vtk
notch_stress.vtk
office.binary.vtk
opal_mound_fault.vtk
PentaHexa.vtk
plate.vtk
polyEx.vtk
polyline.vtk
post.vtk
qualityEx.vtk
RectGrid2.vtk
Ruapehu_mag_dem_15m_NZTM.vtk
SampleStructGrid.vtk
StructuredPoints.vtk
SurfaceVectors.vtk
t.vtk
teeth.lps.vtk
teeth.ras.vtk
teeth.vtk
tensors.vtk
tetraMesh.vtk
texThres.vtk
texThres2.vtk
topo_clean.vtk
track1.binary.vtk
track2.binary.vtk
track3.binary.vtk
uGridEx.vtk
usa.vtk
v.vtk
vtk.vtk
VTKCellTypes.vtk

TransientHDFReader简单测试

Text Only
1
TransientHDFReader简单测试

FullHead.mhd need FullHead.raw.gz

Text Only
1
2
FullHead.mhd
FullHead.raw.gz

Remote

Text Only
1
https://code.ornl.gov/ecpcitest/vtk-m/-/tree/v9.0.0/Remote

Examples Math/VectorDot some error

Text Only
1
2
3
Value 0 : -nan(ind)
Value 1 : inf
Value 2 : inf