Changeset 5596 for branches/1.3/examples/flow/demo2/demo2.tcl
- Timestamp:
- May 21, 2015, 1:09:22 PM (9 years ago)
- Location:
- branches/1.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.3
- Property svn:mergeinfo changed
/trunk merged: 5536-5541,5568-5569,5577-5579,5581-5583,5591-5592
- Property svn:mergeinfo changed
-
branches/1.3/examples/flow/demo2/demo2.tcl
r3484 r5596 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"
Note: See TracChangeset
for help on using the changeset viewer.