- Timestamp:
- Mar 15, 2013, 4:47:18 PM (12 years ago)
- Location:
- trunk/gui/scripts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/field.tcl
r3491 r3508 807 807 set _comp2dims($cname) "3D" 808 808 set _comp2dx($cname) [$_fldObj get -decode no $cname.dx] 809 if 1{809 if 0 { 810 810 set data [$_fldObj get -decode yes $cname.dx] 811 811 set file "/tmp/junk.dx" -
trunk/gui/scripts/mesh.tcl
r3480 r3508 147 147 set _limits($axis) "" 148 148 } 149 GetDimension $path150 149 set u [$_mesh get units] 151 150 if {"" != $u} { … … 394 393 set _type "vtk" 395 394 395 GetDimension $path 396 396 # Create a VTK file with the mesh in it. 397 397 set _vtkdata [$_xmlobj get $path.vtk] … … 415 415 set output [$reader GetOutput] 416 416 foreach { xmin xmax ymin ymax zmin zmax } [$output GetBounds] break 417 set _dim 3; # Hard coding all vtk meshes to 3D?418 417 set _limits(x) [list $xmin $xmax] 419 418 set _limits(y) [list $ymin $ymax] 420 419 set _limits(z) [list $zmin $zmax] 421 if { $zmin >= $zmax } {422 set _dim 2423 }424 420 file delete $tmpfile 425 421 rename $output "" … … 430 426 itcl::body Rappture::Mesh::ReadGrid { path } { 431 427 set _type "grid" 428 429 GetDimension $path 432 430 set numUniform 0 433 431 set numRectilinear 0 … … 943 941 set _type "unstructured" 944 942 943 GetDimension $path 945 944 # Step 1: Verify that there's only one cell tag of any kind. 946 945 set numCells 0
Note: See TracChangeset
for help on using the changeset viewer.