NASA Ames - PowerPoint PPT Presentation

1 / 86
About This Presentation
Title:

NASA Ames

Description:

Title: PowerPoint Author: Last modified by: ii Created Date: 2/25/2000 12:49:46 PM Document presentation format: – PowerPoint PPT presentation

Number of Views:141
Avg rating:3.0/5.0
Slides: 87
Provided by: 34315
Category:

less

Transcript and Presenter's Notes

Title: NASA Ames


1
????????
  • ???? ????????????
  • ???????
  • ???????
  • ???????

2
11.1 ??????? ?????????????,?????,???????????????
???????.?????????????????????. ?????????,????????
??????,?????????????????????????????????????????.
??????????.????????????,????????,???????????????
??????.??????????????.
3
11.2 ??????? NASA Ames FAST IVM VOXEL
View/Voxel Lab Data Visulizer SunVision PV-WAVE
(1)PLOT3D PLOT3D?????????(CFD)??????????????
????????.PLOT3D???85???,??????????????.PLOT3D?????
??????????,?????????,?????????,PLOT3D???????????.
4
11.2.1 PV-WAVE ????????VDA???????VDA??????????????
???????????????,???????????????????????,??????????
??????????????????????????.VDA????????????????????
??,?????????????,???????????,???????????????????
5
11.3 ??????? ????????????????????,???????
?,???????????,??????????????????,?????????????????
??????,??????????????????,??????????????,?????????
?????????,????????. ????????????,????????
??????????????,????????????,??,???????????????????
??,??????????????,??????????????,????????.
6
11.3.1 ?????????? ??????????????????????????????
?????????????????????????????????,????????????????
????????,???????????????????????(????)????

7
EVS--?AVS?????????????????
8
11.4 ??????? ???????,???? (1)????????????? (2
)???????? (3)??????? (4)??????????? (5)????
?
9
????(Input) ?GIS???? ?????? ????(Model) ??
???? Filter?? Mapper?? ????(Output) ???????
?????? ????????????? ??????
10
  • MAYAVI???
  • DATA
  • Filters
  • Module
  • Render

11
class BaseObject class VizObject
(BaseObject) class Source (VizObject) class
DataSource (Source) class VtkDataReader
(DataSource) class PLOT3DReader
(DataSource) class Filter
(Source) class PolyDataNormals
(Filter) class WarpVector (PolyDataNormals)
class Module (VizObject) class
CutPlaneModule (Module) class SurfaceMap
(Module) class Streamlines (Module) class
ModuleManager class DataVizManager class
MayaVi class MayaViTkGUI
12
?????
  • ???? ?????????
  • ????????? EVS
  • ????
  • ???????
  • ????

13
12.1 EVS????? ?EVS????????????????? 1).
??????????,????????? 2). ?Krige????????????????
3). ???????????????????, ??????? ????????? 4
). ??????????????????????????? ?? ???? ?????????
? 5). ?????????????????????????? 6).
?????????????.
14
????? ??????????.
15
Kriging ????
16
Data Filtering ??????????
17
Three-Dimensional Viewing ?????????
18
Output Image Production ?????????
19
12.2 EVS ??? EVS ??8????????? ???????
??????? ???????????? ??????????????????? ???
??? ??? ??????Legend???? Cell???????????????

20
12.3 ??????? ????????????--????(??)?? 2D??
3D??
21
?????????
22
12.4 ?? (1)????
23
(2)????
24
(3)????
25
(4)?????
26
(5)???
27
12.5 ???? Inverse Distance Weighted
(IDW) Splining Geostatistical Methods (Kriging)
28
12.6 ???? (1)?/??? (2)??? (3)??? (4)????? (5)
??
29
(No Transcript)
30
(No Transcript)
31
(No Transcript)
32
???????
????????????
???????
33
???????????,???????????,???????????,??????????????
?????????????????????????????MIKE11???????????????
????,???????????????
?????????????
34
?????????????
??
35
??
?????????
36
????
37
???????
38
(No Transcript)
39
(No Transcript)
40
(No Transcript)
41
(No Transcript)
42
?? ?1? ??????? ?2? PYTHON??
?3? VTK????? ?4? ????????? ?5? ????????
?6? ???????????? ?7? ???????????
?8? ????????? ?9? ?????? ?10? ??????
?11? ???????????? ?12? ?????????
43
????
44
????????
45
VTK?????? VTK???????????,???????????????????????,
????????????????????,??,??,??,????,??????
46
(No Transcript)
47
VTK????? vtkDataArray vtkBitArray
vtkCharArray vtkDoubleArray vtkFloatArray
vtkIdTypeArray vtkIntArray vtkLongArray
vtkShortArray vtkUnsignedCharArray
vtkUnsignedIntArray vtkUnsignedLongArray
vtkUnsignedShortArray vtkVoidArray
48
VTK????? vtkCollection vtkAssemblyPath
vtkAssemblyPaths vtkCullerCollection
vtkDataArrayCollection vtkDataObjectCollection
vtkDataSetCollection vtkIdListCollection
vtkImageReader2Collection vtkImplicitFunctionC
ollection vtkLightCollection vtkMapperCollecti
on vtkObjectFactoryCollection
vtkOverrideInformationCollection
vtkPlaneCollection vtkPolyDataCollection
vtkPropCollection vtkActor2DCollection
vtkActorCollection vtkProp3DCollection
vtkVolumeCollection vtkRendererCollection
vtkRenderWindowCollection vtkStructuredPointsCol
lection vtkTransformCollection
49
VTK??????? vtkCell vtkCell3D vtkConvexPointSe
t vtkHexahedron vtkPyramid vtkTetra
vtkVoxel vtkWedge vtkEmptyCell
vtkGenericCell vtkLine vtkPixel
vtkPolygon vtkPolyLine vtkPolyVertex
vtkQuad
vtkTriangle vtkTriangleStrip vtkVertex
vtkNonLinearCell vtkExplicitCell
vtkQuadraticEdge vtkQuadraticHexahedron
vtkQuadraticQuad vtkQuadraticTetra
vtkQuadraticTriangle
50
VTK??????? vtkDataObject vtkPiecewiseFunction vt
kDataSet vtkImageData vtkStructuredPoints
vtkImageCanvasSource2D vtkPointSet vtkPolyDa
ta vtkStructuredGrid vtkUnstructuredGrid v
tkRectilinearGrid vtkUniformGrid
vtkCompositeDataSet vtkHierarchicalDataSet
vtkHierarchicalBoxDataSet vtkMultiBlockData
Set vtkFieldData vtkDataSetAttributes vtkPointD
ata vtkCellData
51
VTK?????????
52
????????????? (1)????? ??????(2d,3d) (2)??????
??????? (3)?????? ?DEM?? (4)????? ??????,???????
?
53
?VTK????????????? ?????? pcoords
vtkFloatArray() pcoords.SetNumberOfComponents(3) p
coords.SetNumberOfTuples(4) pcoords.SetTuple3(0,
0.0, 0.0, 0.0) pcoords.SetTuple3(1, 1.0, 0.0,
0.0) pcoords.SetTuple3(2, 0.0, 1.0,
0.0) pcoords.SetTuple3(3, 1.0, 1.0,
0.0) ??????? points vtkPoints() points.SetData
(pcoords) ???????? strips vtkCellArray() strip
s.InsertNextCell(4) strips.InsertCellPoint(0) stri
ps.InsertCellPoint(1) strips.InsertCellPoint(2) st
rips.InsertCellPoint(3)
(0,1,0)
(1,1,0)
(0,0,0)
(1,0,0)
54
???????-?? temperature vtkIntArray() temperatur
e.SetName(??") temperature.InsertNextValue(10) te
mperature.InsertNextValue(20) temperature.InsertNe
xtValue(30) temperature.InsertNextValue(40) ????
???-?? concentration vtkDoubleArray() concentrati
on.SetName(??") concentration.InsertNextValue(2.7
) concentration.InsertNextValue(4.1) concentration
.InsertNextValue(5.3) concentration.InsertNextValu
e(3.4) ??????? polydata vtkPolyData() polydata
.SetPoints(points) polydata.SetStrips(strips)
????????? polydata.GetPointData().SetScalars(temp
erature) polydata.GetPointData().
SetScalars(concentration) ?? writer
vtkPolyDataWriter() writer.SetInput(polydata) writ
er.SetFileName("poly.vtk") writer.Write()
55
???????? from vtk import import
string fileopen(data.dat,r) ?????? aLines
file.readlines() ???? aCount len(aLines)
?????? file.close() aData
????????? for i in range(aCount) aStr
aLinesi aStr string.strip(aStr)
strCoord string.split(aStr) for j in
range(len(strCoord)) aData.append(float(str
Coordj))
56
????????2 pcoords vtkFloatArray() pcoords.SetNum
berOfComponents(3) pcoords.SetNumberOfTuples(4) f
or i in range(len(aData)/4) pcoords.SetTuple3(i,
aDatai4, aDatai41, aDatai42) points
vtkPoints() points.SetData(pcoords) temperature
vtkDoubleArray() temperature.SetName("temperatu
re") for i in range(len(aData)/4) temperature.In
sertNextValue(aDatai43) print aDatai43
57
????????? del vtkDelaunay2D() del.SetInput(
polyData) mapMesh vtkPolyDataMapper() mapMesh.Se
tInput(del.GetOutput()) meshActorvtkActor() meshA
ctor.SetMapper( mapMesh )
58
?????DEM?? from vtk import import
string fileopen("dem.dat","r") aLines
file.readlines() aCount len(aLines) file.close()
aData for i in range(aCount) aStr
aLinesi aStr string.strip(aStr)
strCoord string.split(aStr) for j in
range(len(strCoord)) aData.append(float(str
Coordj))
59
?????DEM??2 temperature vtkDoubleArray() tempera
ture.SetName("temperature") for i in
range(len(aData)) temperature.InsertNextValue(aD
atai) spvtkStructuredPoints() sp.SetDimension
s(3,3,1) sp.SetOrigin(0.0,0.0,0.0) sp.SetSpacing(1
.0,1.0,1.0) sp.SetScalarTypeToDouble() sp.SetNumbe
rOfScalarComponents(1) sp.GetPointData().
SetScalars(temperature) writer
vtkStructuredPointsWriter() writer.SetInput(sp) wr
iter.SetFileName("dem.vtk") writer.Write()
60
VTK????? VTK???vtk????,????????? (1)?????????,??
? vtk DataFile Version x.x ? vtk
DataFile Version 2.0 (2)??????,??,????????
?This is a dem file for test (3)??????,??,???
ASCII ? BINARY ?ASCII (
4)???????,???DATASET??,??????????? ?
DATASET POLYDATA ( 5)???????,???POINT_DATA?CELL_DA
TA ??,?????????? ? POINT_DATA 10
61

62
  • ???
  • ?vtk???,???????????
  • bit, unsigned_char, char, unsigned_short, short,
  • unsigned_int, int, unsigned_long, long, float, or
    double
  • ??????0???
  • ??????????????????,?????????????????
  • ????????????????????????????

63
vtk??????????structured points, structured grid,
rectilinear grid, unstructured grid, and
polygonal data? (1) structured points ??1D, 2D,
? 3D??????,?????? DATASET STRUCTURED_POINTS DIMEN
SIONS nx ny nz gt 1 ORIGIN x y
z SPACING sx sy sz gt0
64
(2) structured grid ??1D, 2D, ?
3D???????,???????POINTS?? DATASET
STRUCTURED_GRID DIMENSIONS nx ny nz gt
1 POINTS n dataType ???????????? p0x p0y
p0z p1x p1y p1z ... p(n-1)x p(n-1)y p(n-1)z
65
(3) Rectilinear Grid ??1D, 2D, ?
3D???????,????????COORDINATES?? DATASET
RECTILINEAR_GRID DIMENSIONS nx ny nz
gt 1 X_COORDINATES nx dataType x0 x1 ...
x(nx-1) Y_COORDINATES ny dataType y0 y1 ...
y(ny-1) Z_COORDINATES nz dataType z0 z1 ...
z(nz-1)




66
(4) Polygonal Data ??1D, 2D, ? 3D??????,???POINTS
,VERTICES, LINES, POLYGONS, TRIANGLE_STRIPS??????
? POINTS?????????? VERTICES, LINES, POLYGONS,
TRIANGLE_STRIPS????,??????? DATASET
POLYDATA POINTS n dataType p0x p0y p0z p1x p1y
p1z ... p(n-1)x p(n-1)y p(n-1)z VERTICES n
size numPoints0, i0, j0, k0, ... numPoints1, i1,
j1, k1, ... ... numPointsn-1, in-1, jn-1, kn-1,
...
67
LINES n size numPoints0, i0, j0, k0,
... numPoints1, i1, j1, k1, ... ... numPointsn-1,
in-1, jn-1, kn-1, ... POLYGONS n
size numPoints0, i0, j0, k0, ... numPoints1, i1,
j1, k1, ... ... numPointsn-1, in-1, jn-1, kn-1,
... TRIANGLE_STRIPS n size numPoints0, i0, j0,
k0, ... numPoints1, i1, j1, k1,
... ... numPointsn-1, in-1, jn-1, kn-1, ...
68
CELL_TYPES n type0 type1 type2 ... typen-1
(5) Unstructured Grid ????????? DATASET
UNSTRUCTURED_GRID POINTS n dataType p0x p0y
p0z p1x p1y p1z ... p(n-1)x p(n-1)y
p(n-1)z CELLS n size numPoints0, i, j, k, l,
... numPoints1, i, j, k, l, ... numPoints2, i, j,
k, l, ... ... numPointsn-1, i, j, k, l, ...
69
  • vtk??????????
  • ????,??, ???, ????, ??, ????
  • ????????????
  • (1)??
  • SCALARS dataName dataType numComp
    (1,1-4)
  • LOOKUP_TABLE tableName
    (default)
  • s0
  • s1
  • ...
  • sn-1

70
(2)Lookup Table LOOKUP_TABLE tableName size r0 g0
b0 a0 r1 g1 b1 a1 ... rsize-1 gsize-1 bsize-1
asize-1 (3)VECTOR VECTORS dataName dataType v0x
v0y v0z v1x v1y v1z ... v(n-1)x v(n-1)y v(n-1)z
71
(4) NORMALS NORMALS dataName dataType n0x n0y
n0z n1x n1y n1z ... n(n-1)x n(n-1)y
n(n-1)z (5)Texture Coordinates TEXTURE_COORDINAT
ES dataName dim dataType t00 t01 ...
t0(dim-1) t10 t11 ... t1(dim-1) ... t(n-1)0
t(n-1)1 ... t(n-1)(dim-1)
72
(6) Tensors TENSORS dataName dataType
73
(7) FIELD FIELD dataName numArrays arrayName0
numComponents numTuples dataType f00 f01 ...
f0(numComponents-1) f10 f11 ...
f1(numComponents-1) ... f(numTuples-1)0
f(numTuples-1)1 ... f(numTuples-1)(numComponents-1
) arrayName1 numComponents numTuples
dataType f00 f01 ... f0(numComponents-1) f10 f11
... f1(numComponents-1) ... f(numTuples-1)0
f(numTuples-1)1 ... f(numTuples-1)(numComponents-1
) ... arrayName(numArrays-1) numComponents
numTuples dataType f00 f01 ... f0(numComponents-1)
f10 f11 ... f1(numComponents-1) ... f(numTuples-1
)0 f(numTuples-1)1 ... f(numTuples-1)(numComponent
s-1)
74
??1 vtk DataFile Version 2.0 Cube
example ASCII DATASET POLYDATA POINTS 8 float 0.0
0.0 0.0 1.0 0.0 0.0 1.0 1.0 0.0 0.0 1.0 0.0 0.0
0.0 1.0 1.0 0.0 1.0 1.0 1.0 1.0 0.0 1.0
1.0 POLYGONS 6 30 4 0 1 2 3 4 4 5 6 7 4 0 1 5 4 4
2 3 7 6 4 0 4 7 3 4 1 2 6 5
CELL_DATA 6 SCALARS cell_scalars int
1 LOOKUP_TABLE default 0 1 2 3 4 5 NORMALS
cell_normals float 0 0 -1 0 0 1 0 -1 0 0 1 0 -1 0
0 1 0 0 FIELD FieldData 2 cellIds 1 6 int 0 1 2 3
4 5 faceAttributes 2 6 float 0.0 1.0 1.0 2.0 2.0
3.0 3.0 4.0 4.0 5.0 5.0 6.0
POINT_DATA 8 SCALARS sample_scalars float
1 LOOKUP_TABLE my_table 0.0 1.0 2.0 3.0 4.0 5.0 6.
0 7.0 LOOKUP_TABLE my_table 8 0.0 0.0 0.0 1.0 1.0
0.0 0.0 1.0 0.0 1.0 0.0 1.0 1.0 1.0 0.0 1.0 0.0
0.0 1.0 1.0 1.0 0.0 1.0 1.0 0.0 1.0 1.0 1.0 1.0
1.0 1.0 1.0
75
??2 vtk DataFile Version 2.0 Volume
example ASCII DATASET STRUCTURED_POINTS DIMENSIONS
3 4 6 ASPECT_RATIO 1 1 1 ORIGIN 0 0 0 POINT_DATA
72 SCALARS volume_scalars char 1 LOOKUP_TABLE
default 0 0 0 0 0 0 0 0 0 0 0 0 0 5 10 15 20 25
25 20 15 10 5 0 0 10 20 30 40 50 50 40 30 20 10
0 0 10 20 30 40 50 50 40 30 20 10 0 0 5 10 15 20
25 25 20 15 10 5 0 0 0 0 0 0 0 0 0 0 0 0 0
76
??3 vtk DataFile Version 2.0 Unstructured Grid
Example ASCII DATASET UNSTRUCTURED_GRID POINTS 27
float 0 0 0 1 0 0 2 0 0 0 1 0 1 1 0 2 1 0 0 0 1 1
0 1 2 0 1 0 1 1 1 1 1 2 1 1 0 1 2 1 1 2 2 1 2 0 1
3 1 1 3 2 1 3 0 1 4 1 1 4 2 1 4 0 1 5 1 1 5 2 1
5 0 1 6 1 1 6 2 1 6 CELLS 11 60 8 0 1 4 3 6 7 10
9 8 1 2 5 4 7 8 11 10 4 6 10 9 12 4 5 11 10 14 6
15 16 17 14 13 12 6 18 15 19 16 20 17 4 22 23 20
19 3 21 22 18 3 22 19 18 2 26 25 1 24
CELL_TYPES 11 12 12 10 10 7 6 9 5 5 3 1 POINT_DATA
27 SCALARS scalars float 1 LOOKUP_TABLE
default 0.0 1.0 2.0 3.0 4.0 5.0 6.0 7.0 8.0 9.0
10.0 11.0 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0
20.0 21.0 22.0 23.0 24.0 25.0 26.0
VECTORS vectors float 1 0 0 1 1 0 0 2 0 1 0 0 1 1
0 0 2 0 1 0 0 1 1 0 0 2 0 1 0 0 1 1 0 0 2 0 0 0 1
0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0
0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1
77
(No Transcript)
78
class VtkData(pyvtk.common.Common) VtkData
Represents VTK file that has four
relevant parts header - string up to
length 256 format - string ascii
binary DataSet - StructuredPoints
StructuredGrid UnstructuredGrid
RectilinearGrid PolyData Data -
PointData CellData Usage ------
v VtkData(ltDataSet instancegt ,ltheader
stringgt,ltData instancesgt,..)
v.tofile(filename, format 'ascii') - save VTK
data to file. DataSet
StructuredPoints(lt3-sequence of dimensionsgt
,lt3-sequence of origingt ,
lt3-sequence of spacinggt)
StructuredGrid(lt3-sequence of dimensionsgt,
ltsequence of 3-sequences of
pointsgt)
79
UnstructuredGrid(ltsequence of 3-sequences
of pointsgt ,ltcellgt
ltsequence of (sequences of) integersgt)
cell - vertex poly_vertex line poly_line
triangle triangle_strip
polygon pixel quad tetra
voxel hexahedron wedge pyramid
RectilinearGrid(x ltsequence of
x-coordinatesgt, y
ltsequence of y-coordinatesgt,
z ltsequence of z-coordinatesgt)
PolyData(ltsequence of 3-sequences of pointsgt,
vertices ltsequence of (sequences
of) integersgt, lines ltsequence
of (sequences of) integersgt,
polygons ltsequence of (sequences of)
integersgt, triangle_strips
ltsequence of (sequences of) integersgt)
Data PointData CellData
(ltDataSetAttr instancesgt) - construct Data
instanc DataSetAttr
DataSetAttr - Scalars ColorScalars
LookupTable Vectors
Normals TextureCoordinates Tensors Field
Scalars(ltsequence of scalarsgt ,name,
lookup_table)
80
ColorScalars(ltsequence of scalar sequencesgt
,name) LookupTable(ltsequence of
4-sequencesgt ,name) Vectors(ltsequence of
3-sequencesgt ,name) Normals(ltsequence of
3-sequencesgt ,name) TextureCoordinates(ltse
quence of (1,2, or 3)-sequencesgt ,name)
Tensors(ltsequence of (3x3)-sequencesgt ,name)
Field(name, arrayname_1 sequence of
n_1-sequences, ...
arrayname_m sequence of n_m-sequences,)
where len(array_1) .. len(array_m) must
hold. Methods defined here
__init__(self, structure, args)
tofile(self, filename, format'ascii')
--------------------------------------------------
--------------------
81
celldata CellData(\ Scalars(0,1,2,3,4,5,
name'cell_scalars'),
Normals(0,0,-1,0,0,1,0,-1,0,
0,1,0,-1,0,0,1,0,0,
name'cell_normals'), Field('FieldData',
cellIds0,1,2,3,4,5,
faceAttributes0,1,1,2,2,3,3,4,4,5,5,6
)) vtk VtkData(structure,pointdat
a,celldata) vtk.tofile('example1','ascii') vtk.tof
ile('example1b','binary')
!/usr/bin/env python import sys sys.path
'..'sys.path if sys.version3'1.5'
from lib152 import else from lib import
from pyvtk import structure
PolyData(points0,0,0,1,0,0,1,1,0,0,1,0,
0,0,1,1,0,1,1,1,
1,0,1,1,
polygons0,1,2,3,4,5,6,7,0,1,5,4,
2,3,7,6,0,4,7,3,1,2,6,5
) pointdata PointData(\
Scalars(0,1,2,3,4,5,6,7,
name'sample_scalars',
lookup_table'my_table'), LookupTable(0,0,0,
1,1,0,0,1,0,1,0,1,1,1,0,1,
0,0,1,1,1,0,1,1,0,1,1,1,1,1,1,1,
name'my_table'))
82
!/usr/bin/env python import sys sys.path
'..'sys.path if sys.version3'1.5'
from lib152 import else from lib import
from pyvtk import vtk VtkData(StructuredP
oints(3,4,6), PointData(Scalars(0
,0,0,0,0,0,0,0,0,0,0,0,
0,5,10,15,20,25,25,20,15,10,5,0,
0,10,20,30,40,50,50,40,30,2
0,10,0,
0,10,20,30,40,50,50,40,30,20,10,0,
0,5,10,15,20,25,25,20,15,10,5,0,

0,0,0,0,0,0,0,0,0,0,0,0
))) vtk.tofile('example2') vtk.tofile('ex
ample2b','binary')
83
!/usr/bin/env python import sys sys.path
'..'sys.path if sys.version3'1.5'
from lib152 import else from lib import
from pyvtk import points
0,0,0,1,0,0,2,0,0,0,1,0,1,1,0,2,1,0,
0,0,1,1,0,1,2,0,1,0,1,1,1,1,1,
2,1,1, 0,1,2,1,1,2,2,1,2,0,1,3
,1,1,3,2,1,3, 0,1,4,1,1,4,2,1,4
,0,1,5,1,1,5,2,1,5,
0,1,6,1,1,6,2,1,6 vectors
1,0,0,1,1,0,0,2,0,1,0,0,1,1,0,0,2,0,
1,0,0,1,1,0,0,2,0,1,0,0,1,1,0
,0,2,0, 0,0,1,0,0,1,0,0,1,0,0,
1,0,0,1,0,0,1, 0,0,1,0,0,1,0,
0,1,0,0,1,0,0,1,0,0,1,
0,0,1,0,0,1,0,0,1
vtk VtkData(\ UnstructuredGrid(points,
hexahedron0,1,4,3,6,7,1
0,9,
1,2,5,4,7,8,11,10,
tetra6,10,9,12,
5,11,10,14,
polygon15,16,17,14,13,12,
triangle_strip18,15,19,16,20,17,
quad22,23,20,19,
triangle21,22,18,
22,19,18,
line26,25,
vertex24 ),
PointData(Vectors(vectors),Scalars(range(27))),
'Unstructured Grid Example'
) vtk.tofile('example3') vtk.tofile('example3b','b
inary')
84
????
1 ??????a,b a ??????, StereoRenderOn ()
??????? SetStereoTypeToRedBlue ()
???10???stereo1_2.py b ??????,
StereoRenderOff () 2 a ???????? b
??vtkInteractorStyleTerrain???????? ???10???Tes
tInteractorStyleTerrain_2.py 3 a? ????????????Re
ctGrid.vtk, ????????? ???????????3? ???10???
iso-plane2.py
85
4 b? (1)????Plot3D??combxyz.bin/
combq.bin pl3d vtkPLOT3DReader() pl3d.SetXYZ
FileName("./combxyz.bin") pl3d.SetQFileName(./c
ombq.bin) (2)??2????renb1, renb2 ?renb1
??vtkPlaneWidget???????vtkProbeFilter
????????????,??????? vtkContourFilter???
??,????????? ???10???ProbingWithPlaneWidget_2
.py ?5??? 5-1-iso2.py
?renb2 ??vtkLineWidget????????????????,?????v
tkStreamLine????????????? ???? ???10???
StreamlinesWithLineWidget_2.py ?9???
streamline.py
86
??
Write a Comment
User Comments (0)
About PowerShow.com