Changeset 5591 for trunk/examples
- Timestamp:
- May 21, 2015, 4:10:02 AM (9 years ago)
- Location:
- trunk/examples/flow
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/flow/demo1/demo1.tcl
r5581 r5591 1 1 2 2 # Example of using a unirect3d mesh in a vector field 3 # This is inlucded for testing purposes, since unirect3d outputs are deprecated 3 4 source data-demo1.tcl 4 5 -
trunk/examples/flow/demo2/demo2.tcl
r3484 r5591 1 1 2 # Example of using unirect2d mesh in a vector field. 3 source data-unirect2d.tcl 2 # Example of using unirect2d mesh with a vector field. 3 # This is included only for testing purposes, since unirect2d meshes are 4 # deprecated. 5 if 0 { 6 # extents=2 is deprecated, since VTK needs 3D vectors, even for 2D meshes 7 # Enabling this block should cause an error 8 source data-unirect2d.tcl 9 set extents 2 10 } else { 11 source data-2dflow.tcl 12 set extents 3 13 } 4 14 5 15 package require Rappture … … 7 17 set driver [Rappture::library [lindex $argv 0]] 8 18 9 set elements {19 set elements [subst { 10 20 output.field.about.label "Flow 2d half" 11 21 output.field.component.flow.axis z … … 27 37 output.field.component.style "-nonuniformcolors {0.0 steelblue4 0.000001 blue 0.01 green 0.1 grey 1.0 white} -markers {1% 2% 3% 5% 8% 10% 20% 50% 80%} -opacity 1" 28 38 output.field.camera.position { 29 qw 1 qx 0 qy 0 qz 0 pan-x 0 pan-y 0zoom 1.039 -qw 1 -qx 0 -qy 0 -qz 0 -xpan 0 -ypan 0 -zoom 1.0 30 40 } 31 output.field.component.extents 241 output.field.component.extents $extents 32 42 output.field.component.mesh unirect2d 33 43 unirect2d.xaxis.min -0.5 … … 38 48 unirect2d.yaxis.numpoints 109 39 49 unirect2d.components 2 40 } 50 }] 41 51 42 52 puts stdout "Setting attributes for demo1" -
trunk/examples/flow/demo3/demo3.tcl
r1464 r5591 1 1 2 2 # Example of using dx file in a vector field. 3 # This is included for testing purposes, since DX file data is deprecated 3 4 source data-dx.tcl 4 5 -
trunk/examples/flow/flowtest.tcl
r5581 r5591 86 86 $f2.component.style "-color rainbow -levels 6" 87 87 $f2.camera.position { 88 qw 1 qx 0 qy 0 qz 0 pan-x 0 pan-y 0zoom 1.088 -qw 1 -qx 0 -qy 0 -qz 0 -xpan 0 -ypan 0 -zoom 1.0 89 89 } 90 90 $f2.component.elemtype vectors
Note: See TracChangeset
for help on using the changeset viewer.